diff options
author | Ben Morrison <ben@gbmor.dev> | 2020-05-26 19:59:39 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2020-05-26 23:52:48 -0400 |
commit | 53f2d63e53dccbfae435e01305327f2fcf84a0d4 (patch) | |
tree | 84b6b9db8faf7a1c0324304988455ace5fcf1cc8 /src/main.rs | |
parent | c5ea65393d9b8000d68cf8c2f887f22bdae81222 (diff) | |
download | clinte-53f2d63e53dccbfae435e01305327f2fcf84a0d4.tar.gz |
using in-memory db for tests, passing path to logging::init() instead of assuming
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index faef1b3..474c117 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,8 @@ fn main() -> error::Result<()> { .get_matches(); let start = time::Instant::now(); - logging::init()?; + let file = format!("/tmp/clinte_{}.log", *user::NAME); + logging::init(&file)?; log::info!("clinte starting up!"); println!("clinte v{}", clap::crate_version!()); println!("a community notices system"); |