aboutsummaryrefslogtreecommitdiffstats
path: root/botmanager.py
diff options
context:
space:
mode:
authorJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-07-18 00:01:25 +0300
committerJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-07-18 00:01:25 +0300
commite1b2b62b20266cbebb266b6089215fb46d968a18 (patch)
tree35d525d30e9a8656a1e4391523333ea7aa5cd4c9 /botmanager.py
parent46380f5907c6e8e9e0e655d064dececb0978a3ce (diff)
Add mock http server for api tests, response logging
Diffstat (limited to 'botmanager.py')
-rw-r--r--botmanager.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/botmanager.py b/botmanager.py
index c889e49..32fa69f 100644
--- a/botmanager.py
+++ b/botmanager.py
@@ -44,8 +44,11 @@ class BotManager(object):
try:
r = requests.get(self.shoutbox_api_url)
logging.info("Response from API OK.")
+ logging.info("Messages:")
+ logging.info(r.text)
except:
logging.warning("Failed to get response from API!")
+ traceback.print_exc(2)
return
def default_action(self, chat_id):