Skip to content

Commit

Permalink
improve error logging for query execution (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored Jun 21, 2023
1 parent 17171c0 commit 2096b2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nexus/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,12 @@ impl NexusBackend {
}
};

self.execute_statement(executor, &stmt, peer_holder).await
let res = self.execute_statement(executor, &stmt, peer_holder).await;
// log the error if execution failed
if let Err(err) = &res {
tracing::error!("query execution failed: {:?}", err);
}
res
}

NexusStatement::PeerCursor { stmt, cursor } => {
Expand Down

0 comments on commit 2096b2f

Please sign in to comment.