properly init tracing-subscriber
This commit is contained in:
		
							parent
							
								
									8e9478ebc6
								
							
						
					
					
						commit
						d10d98de96
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -177,7 +177,7 @@ async fn handle_message(ctx: &Context, from: SocketAddr, msg: &Message) { | |||
| 
 | ||||
| #[tokio::main] | ||||
| async fn main() -> ExitCode { | ||||
|     tracing_subscriber::fmt().init(); | ||||
|     tracing_subscriber::fmt::init(); | ||||
|     let cfg: Config = match Config::figment().extract() { | ||||
|         Ok(cfg) => cfg, | ||||
|         Err(err) => { | ||||
|  |  | |||
|  | @ -90,7 +90,7 @@ async fn get_user_data( | |||
| 
 | ||||
| #[tokio::main] | ||||
| async fn main() -> ExitCode { | ||||
|     tracing_subscriber::fmt().init(); | ||||
|     tracing_subscriber::fmt::init(); | ||||
|     let cfg: Config = match Config::figment().extract() { | ||||
|         Ok(cfg) => cfg, | ||||
|         Err(err) => { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue