From 4c5b16d32d0f2966aa32efe46d30fffd685af4a5 Mon Sep 17 00:00:00 2001 From: Jacob Henry Date: Fri, 5 Apr 2019 20:29:54 -0400 Subject: [PATCH] More logging --- client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client.py b/client.py index 14437ca..ad20d6c 100644 --- a/client.py +++ b/client.py @@ -2,6 +2,7 @@ from __future__ import annotations import asyncio import json +import pprint import sys import traceback import logging @@ -268,7 +269,10 @@ class ClientWrapper(object): if blocks is not None: kwargs["blocks"] = blocks - return self.api_call(api_method, **kwargs) + result = self.api_call(api_method, **kwargs) + + logging.info("Tried to send message \"{}\". Got response:\n {}".format(text, pprint.pformat(result))) + return result def send_message(self, text: Optional[str],