Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Smith <mrdoctorwho@gmail.com>2017-04-30 15:24:46 +0300
committerJohn Smith <mrdoctorwho@gmail.com>2017-04-30 15:24:46 +0300
commit3d350af0ca8c8a888f0f2c611e0986020822f139 (patch)
treef4f9c809d99233d960b29c62024071914ebad37d /library
parent471e3cce3651f0d0d1e9ac4eb3ed88d857d7f0aa (diff)
Fix debugging output coloring
Diffstat (limited to 'library')
-rw-r--r--library/vkapi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/vkapi.py b/library/vkapi.py
index 06fdaf5..6e701ba 100644
--- a/library/vkapi.py
+++ b/library/vkapi.py
@@ -335,7 +335,7 @@ class APIBinding(RequestProcessor):
start = time.time()
if method in self.debug or self.debug == "all":
Print("SENT: method %s with values %s in thread: %s" % (method,
- colorizeJSON(str(values)), threading.currentThread().name))
+ colorizeJSON(values), threading.currentThread().name))
response = self.post(url, values)
if response:
@@ -348,7 +348,7 @@ class APIBinding(RequestProcessor):
if self.debug:
end = time.time()
- dbg = (method, colorizeJSON(str(body)), threading.currentThread().name, (end - start), self.logline)
+ dbg = (method, colorizeJSON(body), threading.currentThread().name, (end - start), self.logline)
if method in self.debug or self.debug == "all":
Print("GOT: for method %s: %s in thread: %s (%0.2fs) for %s" % dbg)