Add timestamps in the client and module loader.

This commit is contained in:
Vgr E.Barry 2015-01-18 09:22:03 -05:00
parent 07a684465e
commit 26c81c2c03
2 changed files with 3 additions and 2 deletions

View File

@ -289,6 +289,6 @@ class IRCClient(object):
conn = self.connect()
while True:
if not next(conn):
print("Calling sys.exit()...")
self.stream_handler("Calling sys.exit()...", level="warning")
sys.exit()

View File

@ -1,5 +1,6 @@
import os
import botconfig
from tools import logger
MODULES = {}
@ -15,7 +16,7 @@ for modfile in os.listdir("modules"):
modfile = modfile[:-3]
print("Loading module "+modfile)
logger(None)("Loading module "+modfile)
MODULES[modfile] = getattr(__import__("modules."+modfile), modfile)