3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 13:09:23 +01:00

service_support: raise KILLs to service bots to INFO

This commit is contained in:
James Lu 2017-07-30 00:32:35 +08:00
parent 79d66ad94d
commit 3eb2c6bbf7

View File

@ -113,7 +113,8 @@ def handle_kill(irc, source, command, args):
elif sbot: # Or their service bot instance
servicename = sbot.name
if servicename:
log.debug('(%s) services_support: respawning service %s after KILL.', irc.name, 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))
spawn_service(irc, source, command, {'name': servicename})
utils.add_hook(handle_kill, 'KILL')