Skip to content

Commit

Permalink
Add error type and traceback on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-spencer committed Dec 3, 2024
1 parent a1e798c commit cb79b21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/collector_node/collector_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import subprocess
import sys
import time
import traceback
from typing import Final

import certifi
Expand Down Expand Up @@ -345,6 +346,8 @@ def main():
asyncio.run(collector_main(feeds_file=args.feeds))
# pylint: disable=W0718 # global catch, if this doesn't run, nothing does.
except Exception as err:
logger.debug("error: %s", repr(err))
logger.debug("traceback: %s", traceback.print_exc())
logger.error(
"collector node runner not running: %s",
f"{err}".replace("\n", "").strip(),
Expand Down

0 comments on commit cb79b21

Please sign in to comment.