Skip to content

Commit

Permalink
Merge pull request #318 from bancorprotocol/print-full-traceback-upon…
Browse files Browse the repository at this point in the history
…-main-loop-exception

Log the entire stack-trace upon main-loop exceptions
  • Loading branch information
zavelevsky authored Jan 22, 2024
2 parents 8b9fd4e + 6f0b343 commit f651e7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import os, sys
import time
from typing import List
from traceback import format_exc

import click
import pandas as pd
Expand Down Expand Up @@ -836,7 +837,7 @@ def run(
)

except Exception as e:
mgr.cfg.logger.error(f"Error in main loop: {e}")
mgr.cfg.logger.error(f"Error in main loop: {format_exc()}")
mgr.cfg.logger.error(
f"[main] Error in main loop: {e}. Continuing... "
f"Please report this error to the Fastlane Telegram channel if it persists."
Expand Down

0 comments on commit f651e7c

Please sign in to comment.