diff --git a/src/servers/src/grpc/greptime_handler.rs b/src/servers/src/grpc/greptime_handler.rs index 726e8dd3304c..042680d15932 100644 --- a/src/servers/src/grpc/greptime_handler.rs +++ b/src/servers/src/grpc/greptime_handler.rs @@ -84,7 +84,8 @@ impl GreptimeRequestHandler { .await .map_err(|e| { if e.status_code().should_log_error() { - error!(e; "Failed to handle request"); + let root_error = e.root_cause().unwrap_or(&e); + error!(e; "Failed to handle request, error: {}", root_error.to_string()); } else { // Currently, we still print a debug log. debug!("Failed to handle request, err: {:?}", e);