diff options
| author | 2018-08-05 11:30:43 +0100 | |
|---|---|---|
| committer | 2018-08-05 11:30:43 +0100 | |
| commit | 5e42608ead5021858aada91426300e908148139b (patch) | |
| tree | c4625d5578ffa6956b1894b1f37ad40a6c41f165 /modules/print_activity.py | |
| parent | Remove 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.py | 4 |
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: |
