mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
dont send early exceptions to the client only, leave a trace in the error log too
This commit is contained in:
parent
323292eb8c
commit
06e20e5508
@ -38,7 +38,7 @@ function early_exception_handler($e) {
|
|||||||
foreach( $trace AS $k => $v ) {
|
foreach( $trace AS $k => $v ) {
|
||||||
printf( "%s[%d] %s%s%s()\n", $v['file'], $v['line'], (isset($v['class'])?$v['class']:''), (isset($v['type'])?$v['type']:''), (isset($v['function'])?$v['function']:'') );
|
printf( "%s[%d] %s%s%s()\n", $v['file'], $v['line'], (isset($v['class'])?$v['class']:''), (isset($v['type'])?$v['type']:''), (isset($v['function'])?$v['function']:'') );
|
||||||
}
|
}
|
||||||
|
error_log("PHP Early Exception: [".$e->getCode()."] ".$e->getmessage()." at ".$e->getFile().":".$e->getLine());
|
||||||
}
|
}
|
||||||
set_exception_handler('early_exception_handler');
|
set_exception_handler('early_exception_handler');
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@ function early_exception_handler($e) {
|
|||||||
foreach( $trace AS $k => $v ) {
|
foreach( $trace AS $k => $v ) {
|
||||||
printf( "%s[%d] %s%s%s()\n", $v['file'], $v['line'], (isset($v['class'])?$v['class']:''), (isset($v['type'])?$v['type']:''), (isset($v['function'])?$v['function']:'') );
|
printf( "%s[%d] %s%s%s()\n", $v['file'], $v['line'], (isset($v['class'])?$v['class']:''), (isset($v['type'])?$v['type']:''), (isset($v['function'])?$v['function']:'') );
|
||||||
}
|
}
|
||||||
|
error_log("PHP Early Exception: [".$e->getCode()."] ".$e->getmessage()." at ".$e->getFile().":".$e->getLine());
|
||||||
}
|
}
|
||||||
set_exception_handler('early_exception_handler');
|
set_exception_handler('early_exception_handler');
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user