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
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

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))
{
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
{