Huge refactor, submission system addition & security improvements. +Implementation of moderation cmds.
This commit is contained in:
@@ -100,6 +100,24 @@ pub struct RateLimitConfig {
|
||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||
pub struct LoggingConfig {
|
||||
pub level: String,
|
||||
#[serde(default = "default_file_enabled")]
|
||||
pub file_enabled: bool,
|
||||
#[serde(default = "default_file_path")]
|
||||
pub file_path: String,
|
||||
#[serde(default = "default_max_files")]
|
||||
pub max_files: usize,
|
||||
}
|
||||
|
||||
fn default_file_enabled() -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn default_file_path() -> String {
|
||||
"data/logs/cgcx-server.log".to_string()
|
||||
}
|
||||
|
||||
fn default_max_files() -> usize {
|
||||
7
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user