aboutsummaryrefslogtreecommitdiff
path: root/modules/print_activity.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-08-05 11:30:43 +0100
committerGravatar jesopo2018-08-05 11:30:43 +0100
commit5e42608ead5021858aada91426300e908148139b (patch)
treec4625d5578ffa6956b1894b1f37ad40a6c41f165 /modules/print_activity.py
parentRemove debug print, improve wikipedia.py (diff)
Improved logging, added TRACE logging in Database.py to see how it performs
Diffstat (limited to 'modules/print_activity.py')
-rw-r--r--modules/print_activity.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/print_activity.py b/modules/print_activity.py
index a8c710e9..8344255e 100644
--- a/modules/print_activity.py
+++ b/modules/print_activity.py
@@ -36,7 +36,9 @@ class Module(object):
target = str(event["server"])
if not channel == None:
target += channel
- print("[%s] %s | %s" % (timestamp, target, line))
+ self.bot.events.on("log.info").call(
+ message="%s | %s",
+ params=[target, line])
def _on_message(self, event, nickname):
if not self.bot.args.verbose: