From 006ab2c880fca68e8f103f57c39af826e6e79f42 Mon Sep 17 00:00:00 2001 From: jowj Date: Sun, 7 Oct 2018 14:45:36 -0500 Subject: [PATCH] Add additional logging statements to monitoring function. --- mojojojo-bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mojojojo-bot.py b/mojojojo-bot.py index d11937b..bdca88e 100644 --- a/mojojojo-bot.py +++ b/mojojojo-bot.py @@ -130,9 +130,12 @@ def react_to_message(reaction): def react_to_monitoring(): results_file = Path("/results.json") + logging.info('file exists: '+results_file.is_file()) if results_file.is_file(): open_file = open("/results.json","r") + logging.info('in file exists conditional') for line in open_file: + logging.info('examining item: '+line) slack_client.api_call( "chat.postMessage", channel = get_channel_ID("bots-like-gaston"),