1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Add verbose mode configuration option

This commit is contained in:
2021-02-06 16:38:51 +01:00
parent 25d83db840
commit bc8cda78ae
3 changed files with 8 additions and 2 deletions

View File

@ -23,6 +23,7 @@ pub struct Config {
pub database: DatabaseConfig,
pub proxy: Option<String>,
pub force_https: bool,
pub verbose_mode: bool,
}
/// Globally available configuration
@ -80,6 +81,8 @@ impl Config {
},
force_https: Config::yaml_bool(parsed, "force-https"),
verbose_mode: Config::yaml_bool(parsed, "verbose-mode"),
};
// Save new configuration in memory