Skip to content

Commit a8b000d

Browse files
committed
Add on_stop hook in log.py to flush all log streams
1 parent 564514a commit a8b000d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def console_log(bot, event):
246246
bot.logger.info(text)
247247

248248

249-
# TODO: @hook.onstop() for when unloaded
249+
@hook.on_stop
250250
@hook.command("flushlog", permissions=["botcontrol"])
251251
def flush_log():
252252
for name, stream in stream_cache.values():

0 commit comments

Comments
 (0)