From b3f5a89aca45a3e803e7bc3b2ee1a3d048801eee Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 9 Jan 2024 09:48:47 +0300 Subject: Fix linting errors --- scripts/redis_logger.py | 5 ++--- 1 file 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): -- cgit v1.2.3