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:
pyr0ball 2026-06-10 13:20:56 -07:00
parent 971a859c0d
commit 61816c26bd

View file

@ -205,7 +205,7 @@ def score_security_entries(
conn.commit() conn.commit()
except Exception as exc: 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, error=str(exc))
return CybersecResult(scored=total_scored, detections=total_detections) return CybersecResult(scored=total_scored, detections=total_detections)