Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinr committed Jan 13, 2018
1 parent ab31680 commit 82515b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ def get_logger():
else:
alert_receiver = bot.file_helper

if logger:
try:
for h in logger.handlers:
logger.removeHandler(h)
except:
pass

logger = get_wechat_logger(alert_receiver, level=alert_level)

Expand Down

0 comments on commit 82515b5

Please sign in to comment.