Skip to content

Commit

Permalink
Announcement in connect.py on reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
evgrmn committed Jun 2, 2024
1 parent 5167639 commit d797069
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/bybit/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_in_thread(category, success, num):
for number in success:
if number != 0:
self.logger.error(
"The list was expected when the instruments were loaded, but for some categories it was not received."
"The list was expected when the instruments were loaded, but for some categories it was not received. Reboot"
)
return -1

Expand Down
7 changes: 7 additions & 0 deletions connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ def get_history(ws, success, num):
else:
var.logger.info("No robots loaded.")
sleep(2)
if ws.logNumFatal:
var.logger.info("\n\n")
var.logger.info(
"Something went wrong. "
+ ws.name
+ " is not loading. See logFile.log. Reboot.\n\n"
)


def merge_orders():
Expand Down

0 comments on commit d797069

Please sign in to comment.