mirror of
https://github.com/sprockets/sprockets.logging.git
synced 2024-11-22 03:00:23 +00:00
Dont key error when theres no request
This commit is contained in:
parent
02b0b4694e
commit
d1ce45baf3
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class JSONRequestFormatter(logging.Formatter):
|
|||
if not value:
|
||||
del output[key]
|
||||
if 'message' in output:
|
||||
del output['request']
|
||||
output.pop('request', None)
|
||||
return json.dumps(output)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue