Piotr Labudda 9 лет назад
Родитель
Сommit
2905985d7e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      SE/se-lib/DBG.php

+ 1 - 1
SE/se-lib/DBG.php

@@ -313,7 +313,7 @@ class DBG {
 			debug_print_backtrace();
 			$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");
 			if (false !== $pos) $logInfo['trace'] = substr($logInfo['trace'], $pos + 1);
 		}