From e6a91d16e4357ce3855ef87e44b0200ca4e35ca4 Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Fri, 4 Oct 2019 19:27:35 +0200
Subject: [PATCH] Add some debugging

---
 scripts/chatbot.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/chatbot.py b/scripts/chatbot.py
index 0e9432a..59c6e5a 100644
--- a/scripts/chatbot.py
+++ b/scripts/chatbot.py
@@ -98,6 +98,7 @@ def register_handlers(bot):
                 stderr=subprocess.STDOUT).decode('ascii')
         except subprocess.CalledProcessError as e:
             output = e.output.decode('ascii')
+        print("supervisorctl output, called by {}:\n{}".format(user, output))
         bot.send_message(output, channel_id)
 
     def shifters(msg, user, channel_id):
-- 
GitLab