Skip to content

Commit

Permalink
[to-be-squashed]
Browse files Browse the repository at this point in the history
  • Loading branch information
e3rd committed Apr 4, 2024
1 parent bbbae1a commit 6e6c03b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions intelmq/bots/outputs/smtp_batch/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ def prepare_mails(self):
print("... failed ...", flush=True)
continue
else:
# visible both warning and print
self.logger.warning(f"Warning: %s timeout, too big to read from redis", mail_record)
self.logger.warning("Warning: timeout, too big to read from redis: %r", mail_record)
self.timeout.append(mail_record)
continue

Expand All @@ -256,7 +255,7 @@ def prepare_mails(self):
if threshold and row["time.observation"][:19] < threshold.isoformat()[:19]:
continue
except KeyError:
self.logger.warning(f"Warning: %s row skipped due to time.observation error", mail_record)
self.logger.warning("Warning: row skipped due to time.observation error: %r", mail_record)
fieldnames = fieldnames | set(row.keys())
keys = set(self.allowed_fieldnames).intersection(row)
ordered_keys = []
Expand Down Expand Up @@ -292,7 +291,7 @@ def prepare_mails(self):
try:
zf.writestr(filename + ".csv", output.getvalue())
except Exception:
self.logger.error(f"Cannot zip mail %s", mail_record)
self.logger.error("Error: Cannot zip mail: %r", mail_record)
continue

if email_to in self.alternative_mail:
Expand Down

0 comments on commit 6e6c03b

Please sign in to comment.