mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
add some error handling to have full stacktrace
This commit is contained in:
@@ -27,7 +27,11 @@ require_once(APPROOT.'core/metamodel.class.php');
|
||||
IssueLog::Trace('----- Request: '.utils::GetRequestUri(), LogChannels::WEB_REQUEST);
|
||||
|
||||
utils::InitTimeZone();
|
||||
|
||||
set_error_handler(function ($errno, $errstr) {
|
||||
$e = new \Exception("");
|
||||
\SetupLog::Error("Catching", null, [$e->getMessage(), $e->getTraceAsString()]);
|
||||
echo $e->getMessage() . '<BR>' .$e->getTraceAsString();
|
||||
}, E_WARNING);
|
||||
|
||||
/**
|
||||
* @param string $sPagePath full path (if symlink, it will be resolved)
|
||||
|
||||
Reference in New Issue
Block a user