Commit 96dbea05 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Minor.

parent 2b1d315b
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment