Piotr Labudda 9 rokov pred
rodič
commit
2905985d7e
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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);
 		}