linter fixes

This commit is contained in:
matthewswspence 2024-09-11 10:42:26 -05:00
parent eb3cb1e3d8
commit ed4eeb469f
No known key found for this signature in database
GPG key ID: FB458202A7852BA4

View file

@ -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