Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit bd994da

Browse files
authored
Initialize console_subscriber sooner
1 parent fb9e536 commit bd994da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ pub struct ApiState {
8383
async fn main() -> anyhow::Result<()> {
8484
let start_time = Instant::now();
8585

86+
console_subscriber::init();
87+
8688
let cl_args = Arc::new(ClArgs::parse());
8789

8890
env_logger::init_from_env(Env::default().default_filter_or("info,tokio=trace,runtime=trace"));
@@ -173,8 +175,6 @@ async fn main() -> anyhow::Result<()> {
173175

174176
let listener = tokio::net::TcpListener::bind("[::]:8000").await?;
175177

176-
console_subscriber::init();
177-
178178
info!("Ready {:.0?}", Instant::now() - start_time);
179179

180180
serve(listener, router).await?;

0 commit comments

Comments
 (0)