summaryrefslogtreecommitdiff
path: root/Omni/Log.py
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-04-15 15:22:43 -0400
committerBen Sima <ben@bsima.me>2025-04-15 15:22:43 -0400
commit147dc38ec5963f594474d8d775312049d1f16902 (patch)
tree470c8710bb8d11f5df3b1d9d5a4df6c729b49891 /Omni/Log.py
parentd9875aae11b9a9de1125b4b9e2e0a61d0d22ade3 (diff)
Fix super call in LowerFormatter
I'm honestly not sure what the correct call is here, I guess what I had was Python 2 syntax? And Python 3 doesn't need arguments? Anyway this broke during one of the nixpkgs updates and this seems to have fixed it.
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: