MXS-2789: Make stale journal messages notifications

These events are of no actual consequence and can be safely ignored. It is
simply informational.
This commit is contained in:
Markus Mäkelä
2019-12-05 08:41:43 +02:00
parent 5ab6c472a0
commit 7be6ee1616

View File

@ -266,7 +266,7 @@ void monitor_start(MXS_MONITOR* monitor, const MXS_CONFIG_PARAMETER* params)
{ {
if (journal_is_stale(monitor, monitor->journal_max_age)) 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); remove_server_journal(monitor);
} }
@ -2380,10 +2380,8 @@ static bool journal_is_stale(MXS_MONITOR* monitor, time_t max_age)
if (tdiff >= max_age) if (tdiff >= max_age)
{ {
MXS_WARNING("Journal file was created %ld seconds ago. Maximum journal " MXS_NOTICE("Journal file was created %ld seconds ago. Maximum journal "
"age is %ld seconds.", "age is %ld seconds.", tdiff, max_age);
tdiff,
max_age);
} }
else else
{ {