diff --git a/bootstrap.inc.php b/bootstrap.inc.php index c88922bcb..0a5791bc6 100644 --- a/bootstrap.inc.php +++ b/bootstrap.inc.php @@ -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 // diff --git a/core/metamodel.class.php b/core/metamodel.class.php index bbf80b58b..3073c5002 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -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 {