💚 Move DeprecatedCallsLog activation from bootstrap to \MetaModel::LoadConfig, same as existing LogAPI impl

As this is called from \MetaModel::Startup, our log will be available everywhere !
\DeprecatedCallsLog::Enable call in bootstrap was causing some tests to fail
Modification from what was done in #193
This commit is contained in:
Pierre Goiffon
2021-04-13 14:50:45 +02:00
parent 7b3595357a
commit 2a90557782
2 changed files with 2 additions and 5 deletions

View File

@@ -54,9 +54,6 @@ if (!isset($GLOBALS['bBypassAutoload']) || $GLOBALS['bBypassAutoload'] == false)
require_once APPROOT.'/lib/autoload.php';
}
require_once APPROOT.'core/log.class.inc.php';
DeprecatedCallsLog::Enable();
//
// Maintenance mode
//

View File

@@ -6438,8 +6438,7 @@ abstract class MetaModel
// Set log ASAP
if (self::$m_oConfig->GetLogGlobal())
{
if (self::$m_oConfig->GetLogIssue())
{
if (self::$m_oConfig->GetLogIssue()) {
self::$m_bLogIssue = true;
IssueLog::Enable(APPROOT.'log/error.log');
}
@@ -6448,6 +6447,7 @@ abstract class MetaModel
ToolsLog::Enable(APPROOT.'log/tools.log');
DeadLockLog::Enable();
DeprecatedCallsLog::Enable();
}
else
{