Skip to content

Commit 4b6806a

Browse files
author
Devdutt Shenoi
committed
refactor: revert changes in main
1 parent 8419b64 commit 4b6806a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/main.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,14 @@ use parseable::{
2121
option::{Mode, CONFIG},
2222
rbac, storage, IngestServer, ParseableServer, QueryServer, Server,
2323
};
24-
use tracing_subscriber::{
25-
layer::SubscriberExt, util::SubscriberInitExt, EnvFilter, Layer, Registry,
26-
};
24+
use tracing_subscriber::EnvFilter;
2725

2826
#[actix_web::main]
2927
async fn main() -> anyhow::Result<()> {
30-
let stdout_layer = tracing_subscriber::fmt::layer()
28+
tracing_subscriber::fmt()
29+
.with_env_filter(EnvFilter::from_default_env())
3130
.compact()
32-
.with_filter(EnvFilter::from_default_env());
33-
let subscriber = Registry::default().with(stdout_layer);
34-
subscriber.init();
31+
.init();
3532

3633
// these are empty ptrs so mem footprint should be minimal
3734
let server: Box<dyn ParseableServer> = match CONFIG.parseable.mode {

0 commit comments

Comments
 (0)