Test getTraceback to make AMP errors more verbose

This commit is contained in:
Griatch 2019-01-17 10:29:17 +01:00
parent d2f41bfff0
commit 7ca7fcb3ee

View file

@ -354,8 +354,8 @@ class AMPMultiConnectionProtocol(amp.AMP):
if not _LOGGER:
from evennia.utils import logger as _LOGGER
e.trap(Exception)
_LOGGER.log_err("AMP Error for %(info)s: %(e)s" % {'info': info,
'e': e.getErrorMessage()})
_LOGGER.log_err("AMP Error for {info}: {trcbck} {err}".format(
info=info, trcbck=e.getTraceback(), err=e.getErrorMessage()))
def data_in(self, packed_data):
"""