diff options
| author | Fuwn <[email protected]> | 2021-05-17 10:29:16 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-17 10:29:16 -0700 |
| commit | 457a5e36a7e67cd0bbc576efc98cc2baa533ff86 (patch) | |
| tree | 118d30a7e5959582bc4e441d61c18292aecdcb2a | |
| parent | fix(db): diesel schema path (diff) | |
| download | whirl-457a5e36a7e67cd0bbc576efc98cc2baa533ff86.tar.xz whirl-457a5e36a7e67cd0bbc576efc98cc2baa533ff86.zip | |
feat(cli/clean): don't create log file on clean subcommand
| -rw-r--r-- | whirl_core/src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/whirl_core/src/main.rs b/whirl_core/src/main.rs index 8a1874a..9035ff9 100644 --- a/whirl_core/src/main.rs +++ b/whirl_core/src/main.rs @@ -16,6 +16,7 @@ async fn main() -> Result<(), Box<dyn Error>> { let logger = flexi_logger::Logger::with_str(calculate_log_level()); if std::env::var("LOG_FILE").unwrap_or_else(|_| "true".to_string()) == "false" || !Config::get().whirlsplash.log.file + || std::env::args().collect::<Vec<_>>()[1] == "clean" // Cheeky as all hell. { logger.start()?; } else { |