Skip to content

Commit 60adaa8

Browse files
committed
chore: add tracing error logs
1 parent 4ca9785 commit 60adaa8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • libs/@local/graph/api/src/rest/hashql

libs/@local/graph/api/src/rest/hashql/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ async fn run_query(
168168
.spawn_pinned(|| query_local(ctx, exec, query, options))
169169
.await;
170170

171-
result.unwrap_or_else(|_| {
171+
result.unwrap_or_else(|error| {
172+
tracing::error!(?error, "panicked by trying to execute query");
173+
172174
(
173175
StatusCode::INTERNAL_SERVER_ERROR,
174176
Json(serde_json::json!({"fatal": "internal error: query execution failed"})),

0 commit comments

Comments
 (0)