mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
Display full path to the LOGS directory in SensitiveException
This commit is contained in:
parent
a55ec208aa
commit
a26538c3f0
@ -8,7 +8,7 @@ require LIBS . 'SensitiveException.php';
|
|||||||
function exception_handler($exception) {
|
function exception_handler($exception) {
|
||||||
$message = $exception->getMessage();
|
$message = $exception->getMessage();
|
||||||
if($exception instanceof SensitiveException) {
|
if($exception instanceof SensitiveException) {
|
||||||
$message = 'This error is sensitive and has been logged into system/logs/error.log.<br/>View this file for more information.';
|
$message = 'This error is sensitive and has been logged into ' . LOGS . 'error.log.<br/>View this file for more information.';
|
||||||
|
|
||||||
// log error to file
|
// log error to file
|
||||||
$f = fopen(LOGS . 'error.log', 'ab');
|
$f = fopen(LOGS . 'error.log', 'ab');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user