diff --git a/enochecker3/logging.py b/enochecker3/logging.py index 8e7cd78..57a9183 100644 --- a/enochecker3/logging.py +++ b/enochecker3/logging.py @@ -9,7 +9,7 @@ class ELKFormatter(logging.Formatter): def format(self, record: logging.LogRecord) -> str: - if record.args is not None: + if type(record.args) is tuple and len(record.args) > 0: record.msg = record.msg % record.args return LOGGING_PREFIX + self.create_message(record).json(by_alias=True)