mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 12:38:36 +02:00
linter fixes
This commit is contained in:
parent
6987d9022c
commit
a9f2081167
1 changed files with 4 additions and 3 deletions
|
@ -492,8 +492,9 @@ class JsonServerFormatter(ServerFormatter):
|
|||
log_entry = {"server_time": record.server_time, "level": record.levelname, "message": formatted_record}
|
||||
return json.dumps(log_entry)
|
||||
|
||||
|
||||
# If we're running locally we don't want json formatting
|
||||
if 'localhost' in env_base_url:
|
||||
if "localhost" in env_base_url:
|
||||
django_handlers = ["console"]
|
||||
elif env_log_format == "json":
|
||||
# in production we need everything to be logged as json so that log levels are parsed correctly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue