|
@@ -313,7 +313,7 @@ class DBG {
|
|
|
debug_print_backtrace();
|
|
debug_print_backtrace();
|
|
|
$logInfo['trace'] = ob_get_clean();
|
|
$logInfo['trace'] = ob_get_clean();
|
|
|
}
|
|
}
|
|
|
- if (!empty($logInfo['trace'])) {// remove #0 and #1 (DBG::log and DBG::_log)
|
|
|
|
|
|
|
+ if (!empty($logInfo['trace']) && 'Exception' !== $logInfo['type']) {// remove #0 and #1 (DBG::log and DBG::_log)
|
|
|
$pos = strpos($logInfo['trace'], "\n#2");
|
|
$pos = strpos($logInfo['trace'], "\n#2");
|
|
|
if (false !== $pos) $logInfo['trace'] = substr($logInfo['trace'], $pos + 1);
|
|
if (false !== $pos) $logInfo['trace'] = substr($logInfo['trace'], $pos + 1);
|
|
|
}
|
|
}
|