mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 02:06:32 +01:00
Test getTraceback to make AMP errors more verbose
This commit is contained in:
parent
d2f41bfff0
commit
7ca7fcb3ee
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue