From 934a09f0b1c467e46d445aaa3c00abc60707b923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 21 Oct 2024 15:05:11 +0200 Subject: [PATCH] Log failure to set journal data field size threshold --- src/netlog/netlog-manager.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/netlog/netlog-manager.c b/src/netlog/netlog-manager.c index 8d62458..8522cc2 100644 --- a/src/netlog/netlog-manager.c +++ b/src/netlog/netlog-manager.c @@ -379,7 +379,9 @@ static int manager_journal_monitor_listen(Manager *m) { if (r < 0) return r; - sd_journal_set_data_threshold(m->journal, 0); + r = sd_journal_set_data_threshold(m->journal, 0); + if (r < 0) + log_warning_errno(r, "Failed to set journal data field size threshold"); m->journal_watch_fd = sd_journal_get_fd(m->journal); if (m->journal_watch_fd < 0)