Changed IRC logging levels
This commit is contained in:
parent
54b42e0189
commit
d4d32452cc
1 changed files with 7 additions and 4 deletions
11
irc.py
11
irc.py
|
@ -16,7 +16,8 @@ import ostools
|
||||||
if ostools.isOSXBundle():
|
if ostools.isOSXBundle():
|
||||||
logging.basicConfig(level=logging.WARNING)
|
logging.basicConfig(level=logging.WARNING)
|
||||||
else:
|
else:
|
||||||
logging.basicConfig(level=logging.INFO)
|
# karxi; We do NOT need this set to INFO; it's very, very spammy.
|
||||||
|
logging.basicConfig(level=logging.WARNING)
|
||||||
|
|
||||||
class PesterIRC(QtCore.QThread):
|
class PesterIRC(QtCore.QThread):
|
||||||
def __init__(self, config, window):
|
def __init__(self, config, window):
|
||||||
|
@ -350,7 +351,7 @@ class PesterHandler(DefaultCommandHandler):
|
||||||
# silently ignore CTCP
|
# silently ignore CTCP
|
||||||
if msg[0] == '\x01':
|
if msg[0] == '\x01':
|
||||||
handle = nick[0:nick.find("!")]
|
handle = nick[0:nick.find("!")]
|
||||||
logging.info("---> recv \"CTCP %s :%s\"" % (handle, msg[1:-1]))
|
logging.warning("---> recv \"CTCP %s :%s\"" % (handle, msg[1:-1]))
|
||||||
if msg[1:-1] == "VERSION":
|
if msg[1:-1] == "VERSION":
|
||||||
helpers.ctcp_reply(self.parent.cli, handle, "VERSION", "Pesterchum %s" % (_pcVersion))
|
helpers.ctcp_reply(self.parent.cli, handle, "VERSION", "Pesterchum %s" % (_pcVersion))
|
||||||
elif msg[1:-1].startswith("NOQUIRKS") and chan[0] == "#":
|
elif msg[1:-1].startswith("NOQUIRKS") and chan[0] == "#":
|
||||||
|
@ -358,8 +359,10 @@ class PesterHandler(DefaultCommandHandler):
|
||||||
self.parent.quirkDisable.emit(chan, msg[10:-1], op)
|
self.parent.quirkDisable.emit(chan, msg[10:-1], op)
|
||||||
return
|
return
|
||||||
handle = nick[0:nick.find("!")]
|
handle = nick[0:nick.find("!")]
|
||||||
logging.info("---> recv \"PRIVMSG %s :%s\"" % (handle, msg))
|
if chan != "#pesterchum":
|
||||||
if chan == "#pesterchum":
|
# We don't need anywhere near that much spam.
|
||||||
|
logging.info("---> recv \"PRIVMSG %s :%s\"" % (handle, msg))
|
||||||
|
else:
|
||||||
# follow instructions
|
# follow instructions
|
||||||
if msg[0:6] == "MOOD >":
|
if msg[0:6] == "MOOD >":
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue