Skip to content
Snippets Groups Projects
Commit 4b43ef79 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Fix build. If we are logging to STDERR, we don't have to write to the...

Fix build. If we are logging to STDERR, we don't have to write to the filesystem anyway, so why checking?
parent 38362eef
No related branches found
No related tags found
No related merge requests found
...@@ -32,8 +32,8 @@ class SimpleSAML_Logger_LoggingHandlerFile implements SimpleSAML_Logger_LoggingH ...@@ -32,8 +32,8 @@ class SimpleSAML_Logger_LoggingHandlerFile implements SimpleSAML_Logger_LoggingH
SimpleSAML\Logger::INFO => 'INFO', SimpleSAML\Logger::INFO => 'INFO',
SimpleSAML\Logger::DEBUG => 'DEBUG', SimpleSAML\Logger::DEBUG => 'DEBUG',
); );
private $processname = null; protected $processname = null;
private $format; protected $format;
/** /**
......
...@@ -18,7 +18,8 @@ class StandardError extends \SimpleSAML_Logger_LoggingHandlerFile ...@@ -18,7 +18,8 @@ class StandardError extends \SimpleSAML_Logger_LoggingHandlerFile
*/ */
public function __construct() public function __construct()
{ {
parent::__construct(); $config = \SimpleSAML_Configuration::getInstance();
$this->processname = $config->getString('logging.processname', 'SimpleSAMLphp');
$this->logFile = 'php://stderr'; $this->logFile = 'php://stderr';
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment