We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0b478e commit e095efeCopy full SHA for e095efe
src/WaterPipe/WaterPipe.php
@@ -570,11 +570,10 @@ private function _executeRequest()
570
$this->_executeAction($this->_errorsRegistry[ResponseStatus::InternalServerErrorCode]);
571
} else {
572
$config = WaterPipeConfig::get();
573
- if ($config->useStderr()) {
574
- $stream = fopen("php://stderr", 'w');
+ $logger = $config->errorLogger();
+ if ($logger !== null) {
575
$string = $e->__toString();
576
- fwrite($stream, $string, strlen($string));
577
- fclose($stream);
+ $logger->log($string);
578
} else throw $e;
579
}
580
0 commit comments