You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ih...@apache.org on 2012/05/28 12:15:31 UTC
svn commit: r1343189 -
/logging/log4php/trunk/src/main/php/LoggerHierarchy.php
Author: ihabunek
Date: Mon May 28 10:15:30 2012
New Revision: 1343189
URL: http://svn.apache.org/viewvc?rev=1343189&view=rev
Log:
Removed redundant check in LoggerHierarchy::setRoot(). Root logger is always present since it's populated in the constructor.
Modified:
logging/log4php/trunk/src/main/php/LoggerHierarchy.php
Modified: logging/log4php/trunk/src/main/php/LoggerHierarchy.php
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/main/php/LoggerHierarchy.php?rev=1343189&r1=1343188&r2=1343189&view=diff
==============================================================================
--- logging/log4php/trunk/src/main/php/LoggerHierarchy.php (original)
+++ logging/log4php/trunk/src/main/php/LoggerHierarchy.php Mon May 28 10:15:30 2012
@@ -157,9 +157,6 @@ class LoggerHierarchy {
* @return LoggerRoot
*/
public function getRootLogger() {
- if(!isset($this->root) or $this->root == null) {
- $this->root = new LoggerRoot();
- }
return $this->root;
}