mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 06:18:44 +02:00
💚 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:
@@ -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
|
||||
//
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user