Replace literal with RASPI_ERROR_LOG

This commit is contained in:
billz 2023-12-27 16:48:29 +00:00
parent 939092d673
commit ccbfa1a853
2 changed files with 2 additions and 3 deletions

View file

@ -33,7 +33,7 @@ class ExceptionHandler
$exception->getLine() . PHP_EOL
);
// Log the exception
error_log($errorMessage, 3, 'error.log');
error_log($errorMessage, 3, RASPI_ERROR_LOG);
$renderer = new HtmlErrorRenderer();
$renderer->render($exception);
@ -49,7 +49,7 @@ class ExceptionHandler
$error['file'] . ' on line ' .
$error['line'] . PHP_EOL
);
error_log($errorMessage, 3, 'error.log');
error_log($errorMessage, 3, RASPI_ERROR_LOG);
$renderer = new HtmlErrorRenderer();
$renderer->render($exception);

View file

@ -37,7 +37,6 @@ class HtmlErrorRenderer
header('X-Debug-Exception: '. rawurlencode($message));
header('X-Debug-Exception-File: '. rawurlencode($file).':'.$line);
}
$__template_data = compact(
"message",
"code",