فهرست منبع

updated DBG log

Piotr Labudda 9 سال پیش
والد
کامیت
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();
 			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);
 		}
 		}