From: Henryk Plötz Date: Sun, 27 Jan 2019 13:25:06 +0000 (+0100) Subject: Add extra information to the logging record to aid in filtering. X-Git-Tag: v2.1.0~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e5ea7f6fda6c1acbbbaf7cd3203233314c016b9;p=thirdparty%2Fpython-fints.git Add extra information to the logging record to aid in filtering. See https://github.com/raphaelm/python-fints/issues/53 --- diff --git a/fints/client.py b/fints/client.py index 8bc225c..ba4ad06 100644 --- a/fints/client.py +++ b/fints/client.py @@ -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):