aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-06-02 21:56:39 +0200
committerBryan Gardiner <bog@khumba.net>2024-07-19 20:30:20 -0700
commit827b2b4cd09ce4ff87549b21a68a8c4dee140f69 (patch)
tree0aa8f70e4268112d7cc282d01562155034deeada
parente3d08cfa497947235f6fdcd2245552d516aa3ff5 (diff)
downloadlazygl2srht-827b2b4cd09ce4ff87549b21a68a8c4dee140f69.tar.gz
fix: better logging
-rwxr-xr-ximport_issues.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/import_issues.py b/import_issues.py
index c1dbc21..2f02a6d 100755
--- a/import_issues.py
+++ b/import_issues.py
@@ -191,7 +191,7 @@ def do_mail(
else:
raise ValueError(f"Unhandled mode {mode!r}.")
- log.info(f"{verb} email #{email_count}.")
+ log.info("%s email #%d.", verb, email_count)
date = format_datetime(datetime.now(timezone.utc))
msg_id = make_msgid()
@@ -845,7 +845,7 @@ def main():
assert smtp_user, f"No SMTP user given."
assert smtp_password, f"No SMTP password given."
- log.info(f"Connecting to {smtp_host}:{smtp_port}, user {smtp_user!r}.")
+ log.info("Connecting to %s:%d, user %r.", smtp_host, smtp_port, smtp_user)
if smtp_ssl:
smtp = smtplib.SMTP_SSL(host=smtp_host, port=smtp_port)