Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/utility/logger.php
Show First 20 Lines • Show All 911 Lines • ▼ Show 20 Line(s) | |||||
if ( kUtil::constOn('DBG_SQL_FAILURE') && !defined('IS_INSTALL') ) { | if ( kUtil::constOn('DBG_SQL_FAILURE') && !defined('IS_INSTALL') ) { | ||||
throw new RuntimeException($error_msg); | throw new RuntimeException($error_msg); | ||||
} | } | ||||
else { | else { | ||||
$this->Application->Debugger->appendTrace(); | $this->Application->Debugger->appendTrace(); | ||||
} | } | ||||
} | } | ||||
// next line also trigger attached error handlers | if ( PHP_SAPI === 'cli' ) { | ||||
throw new RuntimeException($error_msg); | |||||
} | |||||
// Next line also trigger attached error handlers. | |||||
trigger_error($error_msg, E_USER_WARNING); | trigger_error($error_msg, E_USER_WARNING); | ||||
return true; | return true; | ||||
} | } | ||||
/** | /** | ||||
* Packs information about error into a single line | * Packs information about error into a single line | ||||
* | * | ||||
▲ Show 20 Lines • Show All 549 Lines • Show Last 20 Lines |