Test getTraceback to make AMP errors more verbose
This commit is contained in:
parent
c3ebd8d251
commit
207391baca
1 changed files with 2 additions and 2 deletions
|
|
@ -354,8 +354,8 @@ class AMPMultiConnectionProtocol(amp.AMP):
|
||||||
if not _LOGGER:
|
if not _LOGGER:
|
||||||
from evennia.utils import logger as _LOGGER
|
from evennia.utils import logger as _LOGGER
|
||||||
e.trap(Exception)
|
e.trap(Exception)
|
||||||
_LOGGER.log_err("AMP Error for %(info)s: %(e)s" % {'info': info,
|
_LOGGER.log_err("AMP Error for {info}: {trcbck} {err}".format(
|
||||||
'e': e.getErrorMessage()})
|
info=info, trcbck=e.getTraceback(), err=e.getErrorMessage()))
|
||||||
|
|
||||||
def data_in(self, packed_data):
|
def data_in(self, packed_data):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue