fix: reduce server log verbosity — skip session in instrument, defaul… (#7729)
This commit is contained in:
@@ -35,7 +35,7 @@ pub fn setup_logging(name: Option<&str>) -> Result<()> {
|
|||||||
let base_env_filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| {
|
let base_env_filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| {
|
||||||
EnvFilter::new("")
|
EnvFilter::new("")
|
||||||
.add_directive("mcp_client=info".parse().unwrap())
|
.add_directive("mcp_client=info".parse().unwrap())
|
||||||
.add_directive("goose=debug".parse().unwrap())
|
.add_directive("goose=info".parse().unwrap())
|
||||||
.add_directive("goose_server=info".parse().unwrap())
|
.add_directive("goose_server=info".parse().unwrap())
|
||||||
.add_directive("tower_http=info".parse().unwrap())
|
.add_directive("tower_http=info".parse().unwrap())
|
||||||
.add_directive(LevelFilter::WARN.into())
|
.add_directive(LevelFilter::WARN.into())
|
||||||
|
|||||||
@@ -495,7 +495,7 @@ impl Agent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Dispatch a single tool call to the appropriate client
|
/// Dispatch a single tool call to the appropriate client
|
||||||
#[instrument(skip(self, tool_call, request_id), fields(input, output))]
|
#[instrument(skip(self, tool_call, request_id, session), fields(input, output, session_id = %session.id))]
|
||||||
pub async fn dispatch_tool_call(
|
pub async fn dispatch_tool_call(
|
||||||
&self,
|
&self,
|
||||||
tool_call: CallToolRequestParams,
|
tool_call: CallToolRequestParams,
|
||||||
|
|||||||
Reference in New Issue
Block a user