More logging
This commit is contained in:
@@ -2,6 +2,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import json
|
import json
|
||||||
|
import pprint
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import logging
|
import logging
|
||||||
@@ -268,7 +269,10 @@ class ClientWrapper(object):
|
|||||||
if blocks is not None:
|
if blocks is not None:
|
||||||
kwargs["blocks"] = blocks
|
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,
|
def send_message(self,
|
||||||
text: Optional[str],
|
text: Optional[str],
|
||||||
|
|||||||
Reference in New Issue
Block a user