diff options
| author | Fuwn <[email protected]> | 2021-05-15 16:32:39 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-15 16:32:39 +0000 |
| commit | 4389bd9d3661a6a0e45d50c54f6489bb8f24851b (patch) | |
| tree | 4ae88aacc461fac21226392a871a9bd56e9c1b03 /src/main.rs | |
| parent | feat(global): logs now go to a dedicated directory and file (diff) | |
| download | whirl-4389bd9d3661a6a0e45d50c54f6489bb8f24851b.tar.xz whirl-4389bd9d3661a6a0e45d50c54f6489bb8f24851b.zip | |
feat(config): better logging configuration
Logging is very much imporved in just about every aspect.
BREAKING CHANGE: `whirlsplash.log` configuration group created, `whirlsplash.log_level`
configuration key removed.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 0b3899d..97ecf4a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use std::error::Error; -use whirl::cli::Cli; +use whirl::{cli::Cli, utils::log::calculate_log_level}; #[tokio::main] async fn main() -> Result<(), Box<dyn Error>> { @@ -12,7 +12,7 @@ async fn main() -> Result<(), Box<dyn Error>> { // Logging dotenv::dotenv().ok(); - flexi_logger::Logger::with_str("trace") + flexi_logger::Logger::with_str(calculate_log_level()) .log_to_file() .directory("log") .print_message() |