Skip to content

Commit 0ec8208

Browse files
Potential fix for pull request finding 'CodeQL / Clear-text logging of sensitive information'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 13c21e5 commit 0ec8208

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

application/api/answer/services/stream_processor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,10 @@ def _get_agent_key(self, agent_id: Optional[str], user_id: Optional[str]) -> tup
345345
str(agent["id"]), agent_owner,
346346
{"last_used_at": now},
347347
)
348-
except Exception as upd_err:
348+
except Exception:
349349
logger.warning(
350-
f"Failed to update last_used_at for agent {agent_id}: {upd_err}"
350+
"Failed to update last_used_at for agent",
351+
exc_info=True,
351352
)
352353
return (
353354
str(agent["key"]) if agent.get("key") else None,

0 commit comments

Comments
 (0)