mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Changed some logging messages.
This commit is contained in:
parent
6df8eed142
commit
fd01a22e84
@ -94,16 +94,20 @@ def upkeep(): # Function to be run on occasion to do upkeep stuff.
|
|||||||
|
|
||||||
def makeIrcsDie():
|
def makeIrcsDie():
|
||||||
"""Kills Ircs."""
|
"""Kills Ircs."""
|
||||||
log.info('Assassinating the Irc object council.')
|
log.info('Killing Irc objects.')
|
||||||
for irc in ircs[:]:
|
for irc in ircs[:]:
|
||||||
irc.die()
|
irc.die()
|
||||||
|
|
||||||
def startDying():
|
def startDying():
|
||||||
"""Starts dying."""
|
"""Starts dying."""
|
||||||
log.info('Beginning that long, slow walk into the night.')
|
log.info('Shutdown initiated.')
|
||||||
global dying
|
global dying
|
||||||
dying = True
|
dying = True
|
||||||
|
|
||||||
|
def finished():
|
||||||
|
log.info('Shutdown complete.')
|
||||||
|
|
||||||
|
atexit.register(finished)
|
||||||
atexit.register(upkeep)
|
atexit.register(upkeep)
|
||||||
atexit.register(makeIrcsDie)
|
atexit.register(makeIrcsDie)
|
||||||
atexit.register(startDying)
|
atexit.register(startDying)
|
||||||
|
Loading…
Reference in New Issue
Block a user