aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/redis_logger.py5
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):