fix(logging): add .json() to stdout-only layer in init_json None branch
This commit is contained in:
1 parent
db982e9c4d
commit
5ea0bee73f
1 file changed
+1
@@ -53,6 +53,7 @@ fn init_json(env_filter: EnvFilter, log_file_path: &Option<String>, level: Level
|
||||
}
|
||||
None => {
|
||||
let layer = tracing_subscriber::fmt::layer()
|
||||
.json()
|
||||
.with_ansi(false)
|
||||
.with_filter(env_filter);
|
||||
tracing_subscriber::registry().with(layer).try_init()?;
|
||||
|
||||
Reference in new issue
Block a user