Merge pull request #63 from cjustice/fix/tracing-subscriber-panic
Fix tracing subscriber panic in scout agent
This commit is contained in:
@@ -34,10 +34,10 @@ pub async fn run_agent_mode(
|
|||||||
.add_directive("g3_cli=info".parse().unwrap())
|
.add_directive("g3_cli=info".parse().unwrap())
|
||||||
.add_directive("llama_cpp=off".parse().unwrap())
|
.add_directive("llama_cpp=off".parse().unwrap())
|
||||||
.add_directive("llama=off".parse().unwrap());
|
.add_directive("llama=off".parse().unwrap());
|
||||||
tracing_subscriber::registry()
|
let _ = tracing_subscriber::registry()
|
||||||
.with(tracing_subscriber::fmt::layer())
|
.with(tracing_subscriber::fmt::layer())
|
||||||
.with(filter)
|
.with(filter)
|
||||||
.init();
|
.try_init();
|
||||||
|
|
||||||
let output = SimpleOutput::new();
|
let output = SimpleOutput::new();
|
||||||
|
|
||||||
|
|||||||
@@ -169,8 +169,8 @@ pub fn initialize_logging(verbose: bool) {
|
|||||||
.add_directive("llama=off".parse().unwrap())
|
.add_directive("llama=off".parse().unwrap())
|
||||||
};
|
};
|
||||||
|
|
||||||
tracing_subscriber::registry()
|
let _ = tracing_subscriber::registry()
|
||||||
.with(tracing_subscriber::fmt::layer())
|
.with(tracing_subscriber::fmt::layer())
|
||||||
.with(filter)
|
.with(filter)
|
||||||
.init();
|
.try_init();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user