mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 00:50:29 +00:00
Replace literal with RASPI_ERROR_LOG
This commit is contained in:
parent
939092d673
commit
ccbfa1a853
2 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue