Commit 8e8e4149 authored by cuiweifeng's avatar cuiweifeng

update : add debug_backtrace

parent 281ba82c
...@@ -62,6 +62,7 @@ class FileLog ...@@ -62,6 +62,7 @@ class FileLog
$exception_info = ''; $exception_info = '';
} }
$log .= ' [exception info: ]' . $exception_info; $log .= ' [exception info: ]' . $exception_info;
$log .= ' [debug_backtrace info: ]' . print_r(debug_backtrace(), 1);
error_log($log); error_log($log);
if (empty($mail_to)) { if (empty($mail_to)) {
$mail_to = 'bp-server@yidian-inc.com'; $mail_to = 'bp-server@yidian-inc.com';
......
...@@ -569,7 +569,7 @@ abstract class MysqlClusterBase ...@@ -569,7 +569,7 @@ abstract class MysqlClusterBase
return true; return true;
} }
FileLog::error("mysql error catch:" . $method . "-" . json_encode($arguments) . '-debug-trace' .print_r(debug_backtrace(), 1) . '-' . print_r([$sqlState, $errorCode, $errorMessage], 1)); FileLog::error("mysql error catch:" . $method . "-" . json_encode($arguments) . '-' . print_r([$sqlState, $errorCode, $errorMessage], 1));
//throw Exception //throw Exception
// $msg = "mysql error catch:" . $method . "-" . json_encode($arguments) . '-' . json_encode([$sqlState, $errorCode, $errorMessage]); // $msg = "mysql error catch:" . $method . "-" . json_encode($arguments) . '-' . json_encode([$sqlState, $errorCode, $errorMessage]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment