Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-07-18 09:47:48 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-07-18 09:47:48 +0400
commit52000dd49e5cd3409ec315b0578169cadb0fe29b (patch)
treee4ba52b36577eac2098480b362d35b7003e23d5d /core/Log.php
parent9322c518cda57e2b0aea869a2f8da6afd4062ea8 (diff)
Refactor testing environment code to remove Log.php tests hack.
Diffstat (limited to 'core/Log.php')
-rw-r--r--core/Log.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/core/Log.php b/core/Log.php
index a28032be9b..3436497884 100644
--- a/core/Log.php
+++ b/core/Log.php
@@ -167,14 +167,6 @@ class Log extends Singleton
*/
protected function __construct()
{
- /**
- * access a property that is not overriden by TestingEnvironment before accessing log as the
- * log section is used in TestingEnvironment. Otherwise access to magic __get('log') fails in
- * TestingEnvironment as it tries to acccess it already here with __get('log').
- * $config->log ==> __get('log') ==> Config.createConfigInstance ==> nested __get('log') ==> returns null
- */
- $initConfigToPreventErrorWhenAccessingLog = Config::getInstance()->mail;
-
$logConfig = Config::getInstance()->log;
$this->setCurrentLogLevelFromConfig($logConfig);
$this->setLogWritersFromConfig($logConfig);