Skip to content

Commit

Permalink
Maybe don't litter everyone's home folder with a log file.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulak committed Apr 22, 2023
1 parent 8555e7f commit 1f315f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ use tui::backend::CrosstermBackend;
use tui::Terminal;

fn main() -> anyhow::Result<()> {
simple_logging::log_to_file("test.log", LevelFilter::Info)?;
log_panics::init();
if cfg!(debug_assertions) {
simple_logging::log_to_file("test.log", LevelFilter::Info)?;
log_panics::init();
}

watch_settings_forever();

Expand Down

0 comments on commit 1f315f0

Please sign in to comment.