Commits

mickael9 committed e724a4a

Made API debugging show sent data

Comments (0)

Files changed (1)

     result = json.loads(resp.decode('utf-8'))
 
     if DEBUG:
-        print(req.full_url + " -->")
+        print('--------------------------------------------------------------------------------')
+        print("%s request to %s -->" % (req.get_method(), req.full_url))
+
+        if req.data:
+            print('data : ' + req.data.decode('utf-8'))
+
+        print('result :')
+
         pprint.pprint(result)
         print()