Skip to content

Commit c993f83

Browse files
jcorbinyiwang
authored andcommitted
Add session id to injection warning log
1 parent 1889e69 commit c993f83

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/core/src/agent/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,8 @@ impl Agent {
628628
// Log warnings for suspicious patterns
629629
if self.app_config.tools.log_injection_warnings && !result.warnings.is_empty() {
630630
tracing::warn!(
631-
"Suspicious patterns detected in {} output: {:?}",
631+
"Suspicious patterns detected in session: {:?} {} output: {:?}",
632+
self.session.id(),
632633
call.name,
633634
result.warnings
634635
);

0 commit comments

Comments
 (0)