mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix: use logger.exception to preserve traceback in logs and drop unused import
This commit is contained in:
parent
5ff514ec79
commit
7f853ba7b6
1 changed files with 1 additions and 2 deletions
|
|
@ -15,7 +15,6 @@ import logging
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
# fcntl is Unix-only; on Windows use msvcrt for file locking
|
||||
try:
|
||||
|
|
@ -628,7 +627,7 @@ def run_job(job: dict) -> tuple[bool, str, str, Optional[str]]:
|
|||
|
||||
except Exception as e:
|
||||
error_msg = f"{type(e).__name__}: {str(e)}"
|
||||
logger.error("Job '%s' failed: %s", job_name, error_msg)
|
||||
logger.exception("Job '%s' failed: %s", job_name, error_msg)
|
||||
|
||||
output = f"""# Cron Job: {job_name} (FAILED)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue