fix(cybersec): clean up debug traceback logging
Replaced manual traceback import with exc_info=True, which is the idiomatic logging pattern and produces the same output.
This commit is contained in:
parent
ccc9a9eecf
commit
9659e74aee
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ def score_security_entries(
|
|||
conn.commit()
|
||||
|
||||
except Exception as exc:
|
||||
logger.error("cybersec scoring failed: %s", exc)
|
||||
logger.error("cybersec scoring failed: %s", exc, exc_info=True)
|
||||
return CybersecResult(scored=total_scored, detections=total_detections, error=str(exc))
|
||||
|
||||
return CybersecResult(scored=total_scored, detections=total_detections)
|
||||
|
|
|
|||
Loading…
Reference in a new issue