mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 02:36:32 +01:00
Cleanup some logger functions which were missed in the merge conflict.
This commit is contained in:
parent
c7e1a6a086
commit
3188f89e47
4 changed files with 6 additions and 6 deletions
|
|
@ -141,7 +141,7 @@ class CmdUnconnectedConnect(MuxCommand):
|
|||
# to handle tracebacks ourselves at this point. If we don't,
|
||||
# we won't see any errors at all.
|
||||
session.msg("An error occurred. Please e-mail an admin if the problem persists.")
|
||||
logger.log_errmsg(traceback.format_exc())
|
||||
logger.log_trace()
|
||||
finally:
|
||||
return
|
||||
|
||||
|
|
@ -287,7 +287,7 @@ class CmdUnconnectedCreate(MuxCommand):
|
|||
# to handle tracebacks ourselves at this point. If we don't,
|
||||
# we won't see any errors at all.
|
||||
session.msg("An error occurred. Please e-mail an admin if the problem persists.")
|
||||
logger.log_errmsg(traceback.format_exc())
|
||||
logger.log_trace()
|
||||
|
||||
|
||||
class CmdUnconnectedQuit(MuxCommand):
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ its and @/./+/-/_ only.") # this echoes the restrictions made by django's auth m
|
|||
# to handle tracebacks ourselves at this point. If we don't,
|
||||
# we won't see any errors at all.
|
||||
session.msg("An error occurred. Please e-mail an admin if the problem persists.")
|
||||
logger.log_errmsg(traceback.format_exc())
|
||||
logger.log_trace()
|
||||
|
||||
class CmdUnconnectedQuit(MuxCommand):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ class CmdPasswordCreate(Command):
|
|||
# to handle tracebacks ourselves at this point. If we don't, we
|
||||
# won't see any errors at all.
|
||||
self.caller.msg("An error occurred. Please e-mail an admin if the problem persists.")
|
||||
logger.log_errmsg(traceback.format_exc())
|
||||
logger.log_trace()
|
||||
|
||||
|
||||
# Menu entry 3 - help screen
|
||||
|
|
|
|||
|
|
@ -265,8 +265,8 @@ class ObjectDB(TypedObject):
|
|||
|
||||
except RuntimeError:
|
||||
errmsg = "Error: %s.location = %s creates a location loop." % (self.key, location)
|
||||
logger.log_errmsg(errmsg)
|
||||
raise #RuntimeError(errmsg)
|
||||
logger.log_trace(errmsg)
|
||||
raise
|
||||
except Exception as e:
|
||||
errmsg = "Error (%s): %s is not a valid location." % (str(e), location)
|
||||
logger.log_trace(errmsg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue