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

@ -19,7 +19,7 @@ async fn main() -> std::io::Result<()> {
let config = Config::parse().unwrap();
// Initializing logging middleware with level set to default or info.
if config.logging {
if config.logging || config.debug{
use env_logger::Env;
env_logger::Builder::from_env(Env::default().default_filter_or("info")).init();
}