mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
Moving the logging system to src/
This commit is contained in:
parent
5064d0cacc
commit
ff98ede98f
6 changed files with 17 additions and 17 deletions
|
|
@ -15,7 +15,7 @@ from apps.objects.models import Object
|
|||
from apps.config.models import ConnectScreen, ConfigValue
|
||||
import cmdhandler
|
||||
import functions_general
|
||||
import functions_log
|
||||
import logger
|
||||
import session_mgr
|
||||
import ansi
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ class SessionProtocol(StatefulTelnetProtocol):
|
|||
What to do when we get a connection.
|
||||
"""
|
||||
self.prep_session()
|
||||
functions_log.log_infomsg('Connection: %s' % (self,))
|
||||
logger.log_infomsg('Connection: %s' % (self,))
|
||||
session_mgr.add_session(self)
|
||||
self.game_connect_screen()
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ class SessionProtocol(StatefulTelnetProtocol):
|
|||
"""
|
||||
Execute this when a client abruplty loses their connection.
|
||||
"""
|
||||
functions_log.log_infomsg('Disconnect: %s' % (self,))
|
||||
logger.log_infomsg('Disconnect: %s' % (self,))
|
||||
self.handle_close()
|
||||
|
||||
def load_user_channels(self):
|
||||
|
|
@ -155,7 +155,7 @@ class SessionProtocol(StatefulTelnetProtocol):
|
|||
self.msg("You are now logged in as %s." % (self.name,))
|
||||
pobject.get_location().emit_to_contents("%s has connected." % (pobject.get_name(show_dbref=False),), exclude=pobject)
|
||||
self.execute_cmd("look")
|
||||
functions_log.log_infomsg("Login: %s" % (self,))
|
||||
logger.log_infomsg("Login: %s" % (self,))
|
||||
|
||||
# Update their account's last login time.
|
||||
user.last_login = datetime.now()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue