summaryrefslogtreecommitdiff
path: root/Omni/Log.py
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Log.py')
-rw-r--r--Omni/Log.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Omni/Log.py b/Omni/Log.py
index 7e3fdd3..ee4a050 100644
--- a/Omni/Log.py
+++ b/Omni/Log.py
@@ -7,10 +7,10 @@ import typing
class LowerFormatter(logging.Formatter):
"""A logging formatter that formats logs how I like."""
- def format(self: "LowerFormatter", record: typing.Any) -> typing.Any:
+ def format(self: "LowerFormatter", record: logging.LogRecord) -> typing.Any:
"""Use the format I like for logging."""
record.levelname = record.levelname.lower()
- return super(logging.Formatter, self).format(record) # type: ignore[misc]
+ return super().format(record)
def setup(level: int = logging.INFO) -> logging.Logger: