diff options
author | Frederick Muriuki Muriithi | 2024-01-09 09:48:47 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-01-09 09:48:47 +0300 |
commit | b3f5a89aca45a3e803e7bc3b2ee1a3d048801eee (patch) | |
tree | 73a4d610d40fc54e510d150f2867503a14e45ec1 /scripts | |
parent | 93c77842315d304abbfc27d78d98b7d42da32a61 (diff) | |
download | gn-uploader-b3f5a89aca45a3e803e7bc3b2ee1a3d048801eee.tar.gz |
Fix linting errors
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/redis_logger.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/redis_logger.py b/scripts/redis_logger.py index c3a71db..97ffe26 100644 --- a/scripts/redis_logger.py +++ b/scripts/redis_logger.py @@ -1,14 +1,12 @@ """Utilities to log to redis for our worker scripts.""" import uuid -import json import logging -from typing import Any from redis import Redis class RedisLogger(logging.Handler): """Log out to redis for our worker scripts""" - def __init__(self, + def __init__(self, # pylint: disable=[too-many-arguments] rconn: Redis, jobid: uuid.UUID, level:int = logging.NOTSET, @@ -25,6 +23,7 @@ class RedisLogger(logging.Handler): value=self.messages_list_name()) def messages_list_name(self): + """Retrieve the fully qualified message-list name""" return f"{str(self.jobid)}:{self.messagelistname}" def emit(self, record): |