mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-01 07:26:34 +02:00
linter fixes
This commit is contained in:
parent
eb3cb1e3d8
commit
ed4eeb469f
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,6 @@ from pathlib import Path
|
|||
from typing import Final
|
||||
from botocore.config import Config
|
||||
import json
|
||||
import logging
|
||||
from django.utils.log import ServerFormatter
|
||||
|
||||
# # # ###
|
||||
|
@ -448,6 +447,7 @@ PHONENUMBER_DEFAULT_REGION = "US"
|
|||
# logger.error("Can't do this important task. Something is very wrong.")
|
||||
# logger.critical("Going to crash now.")
|
||||
|
||||
|
||||
class JsonServerFormatter(ServerFormatter):
|
||||
"""Formats logs into JSON for easier and more accurate processing."""
|
||||
def format(self, record):
|
||||
|
@ -459,6 +459,7 @@ class JsonServerFormatter(ServerFormatter):
|
|||
}
|
||||
return json.dumps(log_entry)
|
||||
|
||||
|
||||
LOGGING = {
|
||||
"version": 1,
|
||||
# Don't import Django's existing loggers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue