feat: add an option to enable or disable logs

This commit is contained in:
neon_arch 2023-05-27 19:50:20 +03:00
parent 1d638ffeea
commit 8e7dc68d2d
3 changed files with 9 additions and 2 deletions

View file

@ -25,6 +25,7 @@ pub struct Config {
pub style: Style,
pub redis_connection_url: String,
pub aggregator: AggreatorConfig,
pub logging: bool,
}
/// Configuration options for the aggregator.
@ -71,6 +72,7 @@ impl Config {
),
redis_connection_url: globals.get::<_, String>("redis_connection_url")?,
aggregator: aggregator_config,
logging: globals.get::<_, bool>("logging")?,
})
})
}