logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1343189 - /logging/log4php/trunk/src/main/php/LoggerHierarchy.php
Date Mon, 28 May 2012 10:15:31 GMT
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;
 	}
 	 



Mime
View raw message