From f15f27168a5c1bd91eaa3e101a8d6189b9f8a5cf Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 2 Aug 2017 22:14:57 +0800 Subject: [PATCH] services_support: log the reason as well when a service bot is killed --- coremods/service_support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coremods/service_support.py b/coremods/service_support.py index 146eb01..9a02f95 100644 --- a/coremods/service_support.py +++ b/coremods/service_support.py @@ -113,8 +113,8 @@ def handle_kill(irc, source, command, args): elif sbot: # Or their service bot instance servicename = sbot.name if servicename: - log.info('(%s) Received kill to service %s (%s) from %s.', irc.name, servicename, - userdata.nick if userdata else irc.users[target].nick, irc.get_hostmask(source)) + log.info('(%s) Received kill to service %r (nick: %r) from %s (reason: %r).', irc.name, servicename, + userdata.nick if userdata else irc.users[target].nick, irc.get_hostmask(source), args.get('text')) spawn_service(irc, source, command, {'name': servicename}) utils.add_hook(handle_kill, 'KILL')