Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit 3b3fc89

Browse files
oschulzSamgkreuzer
authored andcommitted
fixed the code style
1 parent 0a10583 commit 3b3fc89

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

logstash_async/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Constants:
2626
# maximum number of events to be updated within one SQLite statement
2727
FORMATTER_RECORD_FIELD_SKIP_LIST = [
2828
'args', 'asctime', 'created', 'exc_info', 'exc_text', 'filename', 'funcName',
29-
'id', 'levelname', 'levelno', 'lineno', 'message','module',
29+
'id', 'levelname', 'levelno', 'lineno', 'message', 'module',
3030
'msecs', 'msg', 'name', 'pathname', 'process',
3131
'processName', 'relativeCreated', 'stack_info', 'thread', 'threadName']
3232
# fields to be set on the top-level of a Logstash event/message, do not modify this

logstash_async/formatter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ def value_repr(value):
134134

135135
for key, value in record.__dict__.items():
136136
if key not in constants.FORMATTER_RECORD_FIELD_SKIP_LIST:
137-
if self._extra_prefix and key not in constants.FORMATTER_LOGSTASH_MESSAGE_FIELD_LIST:
137+
if self._extra_prefix \
138+
and key not in constants.FORMATTER_LOGSTASH_MESSAGE_FIELD_LIST:
138139
key = self._extra_prefix + "." + key
139140
fields[key] = value_repr(value)
140141
return fields

0 commit comments

Comments
 (0)