Add disable_colors field to GeneralConfig

Add option to disable colored output in logs
This commit is contained in:
artemws 2026-02-15 10:12:33 +02:00 committed by GitHub
parent 5f54eb8270
commit c837a9b0c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -164,6 +164,10 @@ pub struct GeneralConfig {
#[serde(default)]
pub log_level: LogLevel,
/// Disable colored output in logs (useful for files/systemd)
#[serde(default)]
pub disable_colors: bool,
}
impl Default for GeneralConfig {
@ -179,6 +183,7 @@ impl Default for GeneralConfig {
middle_proxy_nat_probe: false,
middle_proxy_nat_stun: None,
log_level: LogLevel::Normal,
disable_colors: false,
}
}
}