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
ed63cc5a67
commit
db2e4f85e7
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue