Skip to content

Conversation

@gruuya
Copy link
Contributor

@gruuya gruuya commented Apr 18, 2024

Log query ids, request metadata as well as errors.

@gruuya gruuya requested a review from mildbyte April 18, 2024 12:20
Comment on lines 65 to 72
let plan = ctx
.plan_query(query)
.await
.inspect_err(|err| debug!("Error planning query id {query_id}: {err}"))?;
let batch_stream = ctx
.execute_stream(plan)
.await
.inspect_err(|err| debug!("Error executing query id {query_id}: {err}"))?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These could be INFO I think (since we can't turn on debug logging on the fly without redeploying Seafowl)

"No results found for query id {query_id}"
)))?;
let (_, batch_stream_mutex) = self.results.remove(query_id).ok_or_else(|| {
debug!("No results found for query id {query_id}");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be an INFO/ERROR? If a client is requesting a query that it thought we were executing but we aren't, we definitely want to know

@gruuya gruuya merged commit 84f80be into main Apr 22, 2024
@gruuya gruuya deleted the improve-logging branch April 22, 2024 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants