mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
coremods: remove references to 'coreplugin' in logging
This commit is contained in:
parent
e3170cda83
commit
017d6a4651
@ -19,11 +19,11 @@ def _shutdown(irc=None):
|
|||||||
for name, plugin in world.plugins.items():
|
for name, plugin in world.plugins.items():
|
||||||
# Before closing connections, tell all plugins to shutdown cleanly first.
|
# Before closing connections, tell all plugins to shutdown cleanly first.
|
||||||
if hasattr(plugin, 'die'):
|
if hasattr(plugin, 'die'):
|
||||||
log.debug('coreplugin: Running die() on plugin %s due to shutdown.', name)
|
log.debug('coremods.control: Running die() on plugin %s due to shutdown.', name)
|
||||||
try:
|
try:
|
||||||
plugin.die(irc)
|
plugin.die(irc)
|
||||||
except: # But don't allow it to crash the server.
|
except: # But don't allow it to crash the server.
|
||||||
log.exception('coreplugin: Error occurred in die() of plugin %s, skipping...', name)
|
log.exception('coremods.control: Error occurred in die() of plugin %s, skipping...', name)
|
||||||
|
|
||||||
for ircobj in world.networkobjects.values():
|
for ircobj in world.networkobjects.values():
|
||||||
# Disconnect all our networks.
|
# Disconnect all our networks.
|
||||||
|
@ -80,7 +80,7 @@ def handle_whois(irc, source, command, args):
|
|||||||
|
|
||||||
# 301: used to show away information if present
|
# 301: used to show away information if present
|
||||||
away_text = user.away
|
away_text = user.away
|
||||||
log.debug('(%s) coreplugin/handle_whois: away_text for %s is %r', irc.name, target, away_text)
|
log.debug('(%s) coremods.handlers.handle_whois: away_text for %s is %r', irc.name, target, away_text)
|
||||||
if away_text:
|
if away_text:
|
||||||
f(server, 301, source, '%s :%s' % (nick, away_text))
|
f(server, 301, source, '%s :%s' % (nick, away_text))
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ def handle_disconnect(irc, source, command, args):
|
|||||||
for name, sbot in world.services.items():
|
for name, sbot in world.services.items():
|
||||||
try:
|
try:
|
||||||
del sbot.uids[irc.name]
|
del sbot.uids[irc.name]
|
||||||
log.debug("coreplugin: removing uids[%s] from service bot %s", irc.name, sbot.name)
|
log.debug("coremods.service_support: removing uids[%s] from service bot %s", irc.name, sbot.name)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user