From 7be6ee16166a65d02dce1e142ab68991d5ee57c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 5 Dec 2019 08:41:43 +0200 Subject: [PATCH] MXS-2789: Make stale journal messages notifications These events are of no actual consequence and can be safely ignored. It is simply informational. --- server/core/monitor.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/server/core/monitor.cc b/server/core/monitor.cc index 82e57fc82..d93dd5b86 100644 --- a/server/core/monitor.cc +++ b/server/core/monitor.cc @@ -266,7 +266,7 @@ void monitor_start(MXS_MONITOR* monitor, const MXS_CONFIG_PARAMETER* params) { if (journal_is_stale(monitor, monitor->journal_max_age)) { - MXS_WARNING("Removing stale journal file for monitor '%s'.", monitor->name); + MXS_NOTICE("Removing stale journal file for monitor '%s'.", monitor->name); remove_server_journal(monitor); } @@ -2380,10 +2380,8 @@ static bool journal_is_stale(MXS_MONITOR* monitor, time_t max_age) if (tdiff >= max_age) { - MXS_WARNING("Journal file was created %ld seconds ago. Maximum journal " - "age is %ld seconds.", - tdiff, - max_age); + MXS_NOTICE("Journal file was created %ld seconds ago. Maximum journal " + "age is %ld seconds.", tdiff, max_age); } else {