use crate::tina::{data::AppResult, server::application::AppConfig};
use super::UpdateableConfig;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(crate = "serde")]
pub struct LogConfig {
pub enable_request_parameter_log: bool,
pub log_parameter_json_length: u32,
}
impl Default for LogConfig {
fn default() -> Self {
Self {
enable_request_parameter_log: false,
log_parameter_json_length: 2000,
}
}
}
#[async_trait]
impl UpdateableConfig for LogConfig {
async fn apply(&self, _application: &AppConfig) -> AppResult<()> {
Ok(())
}
}