From 358efb0f2f163ce2720dcff22982df36a6c2a14d Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Wed, 18 Dec 2019 09:27:49 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02518=20Change=20log=20level=20for=20non?= =?UTF-8?q?=20existent=20legacy=20log=20file=20when=20trying=20to=20rename?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/log.class.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/log.class.inc.php b/core/log.class.inc.php index ebf88b8b4..da20795ec 100644 --- a/core/log.class.inc.php +++ b/core/log.class.inc.php @@ -184,7 +184,7 @@ class FileLog $sSource = APPROOT.$sLogCurrentName; if (!file_exists($sSource)) { - IssueLog::Info("Log file '$sLogCurrentName' does not exists, skipping"); + IssueLog::Debug("Log file '$sLogCurrentName' (legacy) does not exists, renaming skipped"); continue; } @@ -192,10 +192,10 @@ class FileLog $bResult = rename($sSource, $sDestination); if (!$bResult) { - IssueLog::Error("Log file '$sLogCurrentName' cannot be renamed to '$sLogNewName'"); + IssueLog::Error("Log file '$sLogCurrentName' (legacy) cannot be renamed to '$sLogNewName'"); continue; } - IssueLog::Info("Log file '$sLogCurrentName' renamed to '$sLogNewName'"); + IssueLog::Info("Log file '$sLogCurrentName' (legacy) renamed to '$sLogNewName'"); } }