]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Add extra information to the logging record to aid in filtering. 55/head
authorHenryk Plötz <henryk@ploetzli.ch>
Sun, 27 Jan 2019 13:25:06 +0000 (14:25 +0100)
committerHenryk Plötz <henryk@ploetzli.ch>
Sun, 27 Jan 2019 13:25:06 +0000 (14:25 +0100)
See https://github.com/raphaelm/python-fints/issues/53

fints/client.py

index 8bc225c686efba639e1bce148cf18fca4a6baea0..ba4ad06717531ce2524509e5c1ce6fc1851cd1ea 100644 (file)
@@ -324,7 +324,12 @@ class FinTS3Client:
         log_target("Dialog response: {} - {}{}".format(
             response.code,
             response.text,
-            " ({!r})".format(response.parameters) if response.parameters else "")
+            " ({!r})".format(response.parameters) if response.parameters else ""),
+            extra={
+                'fints_response_code': response.code,
+                'fints_response_text': response.text,
+                'fints_response_parameters': response.parameters,
+            }
         )
 
     def get_information(self):