diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-07-18 09:47:48 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-07-18 09:47:48 +0400 |
commit | 52000dd49e5cd3409ec315b0578169cadb0fe29b (patch) | |
tree | e4ba52b36577eac2098480b362d35b7003e23d5d /core/Log.php | |
parent | 9322c518cda57e2b0aea869a2f8da6afd4062ea8 (diff) |
Refactor testing environment code to remove Log.php tests hack.
Diffstat (limited to 'core/Log.php')
-rw-r--r-- | core/Log.php | 8 |
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); |