feat: add an option to enable/disable debug mode

This commit is contained in:
neon_arch 2023-05-29 21:09:07 +03:00
parent 141aacc82a
commit d4df90160d
3 changed files with 4 additions and 1 deletions

View file

@ -26,6 +26,7 @@ pub struct Config {
pub redis_connection_url: String,
pub aggregator: AggreatorConfig,
pub logging: bool,
pub debug: bool,
}
/// Configuration options for the aggregator.
@ -73,6 +74,7 @@ impl Config {
redis_connection_url: globals.get::<_, String>("redis_connection_url")?,
aggregator: aggregator_config,
logging: globals.get::<_, bool>("logging")?,
debug: globals.get::<_, bool>("debug")?,
})
})
}