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 ed63cc5a67
commit db2e4f85e7

View file

@ -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)