mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix signal logging
This commit is contained in:
parent
4cc617fd0d
commit
cb3379a316
4
main.py
4
main.py
@ -151,8 +151,8 @@ if __name__ == '__main__':
|
||||
|
||||
def sigterm_handler(*sig):
|
||||
print() # for newline
|
||||
logger.info(f"Recieved SIGINT [{sig[0]}], stopping Crafty...")
|
||||
console.info(f"Recieved SIGINT [{sig[0]}], stopping Crafty...")
|
||||
logger.info(f"Recieved {signal.Signals(sig[0]).name} [{sig[0]}], stopping Crafty...")
|
||||
console.info(f"Recieved {signal.Signals(sig[0]).name} [{sig[0]}], stopping Crafty...")
|
||||
tasks_manager._main_graceful_exit()
|
||||
Crafty.universal_exit()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user