fix env logger
This commit is contained in:
		
							parent
							
								
									d4380260c1
								
							
						
					
					
						commit
						d74626ee1d
					
				| @ -9,6 +9,10 @@ use std::fmt; | |||||||
| #[tokio::main] | #[tokio::main] | ||||||
| async fn main() -> Result<(), Box<dyn std::error::Error>> { | async fn main() -> Result<(), Box<dyn std::error::Error>> { | ||||||
|     //println!("{}",chrono::offset::Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true));
 |     //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(); |     let nut = NutClient::new().unwrap(); | ||||||
|     match ElasticConection::new() { |     match ElasticConection::new() { | ||||||
|         Ok(c) => start_loop(c, nut).await, |         Ok(c) => start_loop(c, nut).await, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user