From fb33fa7596bd7266f44c9b6c001e555f2bb39ef7 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Sun, 14 Jul 2024 16:41:49 +0200 Subject: [PATCH] remove timestamp, it seems it's not present for all messages? --- src/sysalert/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysalert/email.py b/src/sysalert/email.py index d9163a6..c2545de 100644 --- a/src/sysalert/email.py +++ b/src/sysalert/email.py @@ -52,7 +52,7 @@ def failure(name, failures, config): reader.add_match(_SYSTEMD_INVOCATION_ID=latest_inv_id) journal_txt = "\n".join( [ - f'{entry["_SOURCE_REALTIME_TIMESTAMP"]}: {entry["MESSAGE"]}' + entry["MESSAGE"] for entry in list(reader)[-200:] ])