We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c2321f + bdac0cb commit 96d4d2fCopy full SHA for 96d4d2f
kafka_logger/handlers.py
@@ -161,7 +161,7 @@ def prepare_record_dict(self, record):
161
# but it is not 1:1 - logging "inf" float
162
# causes _jsonparsefailure error in ELK
163
value = tuple(repr(arg) for arg in value)
164
- if key == "msg" and not isinstance(value, basestring):
+ if key == "msg" and not isinstance(value, str):
165
# msg contains custom class object
166
# if there is no formatting in the logging call
167
value = str(value)
0 commit comments