Log exception when bot airbag is activated

To facilitate investigating airbag-prevented PTGbot crashes,
log the exception stacktrace.

Change-Id: I6600abc1f07f16b739c62aeb632bd5bfd9a5e3e9
This commit is contained in:
Thierry Carrez 2020-11-25 15:59:56 +01:00
parent 89abc3f7bc
commit df17b77f7e
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def make_safe(func):
func(*args, **kwargs)
except Exception as e:
msg = "Bot airbag activated: " + str(e)
args[0].log.error(msg)
args[0].log.error(msg, exc_info=True)
args[0].send(args[0].channel, msg)
return inner