From 5e42608ead5021858aada91426300e908148139b Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 5 Aug 2018 11:30:43 +0100 Subject: Improved logging, added TRACE logging in Database.py to see how it performs --- modules/print_activity.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/print_activity.py') 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: -- cgit v1.3.1-10-gc9f91