mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-20 00:14:16 +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 typing import Final
|
||||||
from botocore.config import Config
|
from botocore.config import Config
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
from django.utils.log import ServerFormatter
|
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.error("Can't do this important task. Something is very wrong.")
|
||||||
# logger.critical("Going to crash now.")
|
# logger.critical("Going to crash now.")
|
||||||
|
|
||||||
|
|
||||||
class JsonServerFormatter(ServerFormatter):
|
class JsonServerFormatter(ServerFormatter):
|
||||||
"""Formats logs into JSON for easier and more accurate processing."""
|
"""Formats logs into JSON for easier and more accurate processing."""
|
||||||
def format(self, record):
|
def format(self, record):
|
||||||
|
@ -459,6 +459,7 @@ class JsonServerFormatter(ServerFormatter):
|
||||||
}
|
}
|
||||||
return json.dumps(log_entry)
|
return json.dumps(log_entry)
|
||||||
|
|
||||||
|
|
||||||
LOGGING = {
|
LOGGING = {
|
||||||
"version": 1,
|
"version": 1,
|
||||||
# Don't import Django's existing loggers
|
# Don't import Django's existing loggers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue