Skip to content
Snippets Groups Projects
Commit 96dbea05 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Minor.

parent 2b1d315b
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ class LogstashFormatterVersion1ForStructlog(logstash.formatter.LogstashFormatter
def format(self, record):
try:
structlog = json.loads(record.getMessage())
except json.decoder.JSONDecodeError:
except json.JSONDecodeError:
structlog = dict(event=record.getMessage())
# Create message dict
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment