From 09f5614cb9613e9490ada3521cd44d78535fc59f Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Fri, 7 Aug 2009 14:01:49 +0000 Subject: [PATCH] Logger: Remove some dead code. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1640 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Logger.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/SimpleSAML/Logger.php b/lib/SimpleSAML/Logger.php index 8b2c66d62..bb6576687 100644 --- a/lib/SimpleSAML/Logger.php +++ b/lib/SimpleSAML/Logger.php @@ -97,33 +97,18 @@ class SimpleSAML_Logger { public static function createLoggingHandler() { - global $SIMPLESAML_INCPREFIX; - /* Get the configuration. */ $config = SimpleSAML_Configuration::getInstance(); assert($config instanceof SimpleSAML_Configuration); /* Get the metadata handler option from the configuration. */ - $handler = $config->getValue('logging.handler','syslog'); + $handler = $config->getString('logging.handler', 'syslog'); /* * setting minimum log_level */ self::$logLevel = $config->getValue('logging.level',LOG_INFO); - /* If 'logging.handler' is NULL or unset, then we want - * to fall back to the default logging handler. - */ - if(is_null($handler)) { - $handler = 'syslog'; - } - - - /* The session handler must be a string. */ - if(!is_string($handler)) { - throw new Exception('Invalid setting for the [logging.handler] configuration option. This option should be set to a valid string.'); - } - $handler = strtolower($handler); if($handler === 'syslog') { -- GitLab