From e13e7a4477108cefd004a65a8eee28abe0ec28c1 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 14 Jan 2014 00:02:17 +0100 Subject: reaktor: reflect changes of api in reaktor code --- Reaktor/IRC/ircasy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Reaktor/IRC/ircasy.py') diff --git a/Reaktor/IRC/ircasy.py b/Reaktor/IRC/ircasy.py index 3d211ac5..6b478de7 100644 --- a/Reaktor/IRC/ircasy.py +++ b/Reaktor/IRC/ircasy.py @@ -18,7 +18,7 @@ import logging,logging.handlers class asybot(asychat): - def __init__(self, server, port, channels, nickname, realname=False, username=False, hostname=False, hammer_interval=10, alarm_timeout=300, kill_timeout=360): + def __init__(self, server, port, nickname, channels, realname=False, username=False, hostname=False, hammer_interval=10, alarm_timeout=300, kill_timeout=360, loglevel=logging.ERROR): asychat.__init__(self) #logger magic self.log = logging.getLogger('asybot') @@ -26,7 +26,7 @@ class asybot(asychat): formatter = logging.Formatter( '%(filename)s: %(levelname)s: %(message)s') hdlr.setFormatter(formatter) self.log.addHandler(hdlr) - logging.basicConfig(level = logging.DEBUG) + logging.basicConfig(level = loglevel) self.nickname = nickname -- cgit v1.2.3