diff --git a/src/main.rs b/src/main.rs index d4a80df..508a8b3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,6 +9,10 @@ use std::fmt; #[tokio::main] async fn main() -> Result<(), Box> { //println!("{}",chrono::offset::Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true)); + env_logger::Builder::from_default_env() + .format_timestamp_secs() + .filter(None, log::LevelFilter::Info) + .init(); let nut = NutClient::new().unwrap(); match ElasticConection::new() { Ok(c) => start_loop(c, nut).await,