Skip to content

core: Log database + reducer name on error#5473

Open
kim wants to merge 1 commit into
masterfrom
kim/core/reducer-error-context
Open

core: Log database + reducer name on error#5473
kim wants to merge 1 commit into
masterfrom
kim/core/reducer-error-context

Conversation

@kim

@kim kim commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

In addition to the error message, log the database identity and the
reducer name when a reducer returns an error.

This provides a useful correlation, for example when the error has
upstream effects such as causing elevated error rates in the proxy
connection establishment due to the module rejecting the connection on
purpose.

Expected complexity level and risk

1

Testing

Logging change only.

In addition to the error message, log the database identity and the
reducer name when a reducer returns an error.

This provides a useful correlation, for example when the error has
upstream effects such as causing elevated error rates in the proxy
connection establishment due to the module rejecting the connection on
purpose.
@kim kim requested review from bfops and gefjon July 2, 2026 11:57

@bfops bfops left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this seems fine to me, although I think this is one of the logs that we wanted to remove generally since it generally indicates user error, not server error

@kim

kim commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

it generally indicates user error

We could omit the error message, maybe?
There's just not much we can do on the proxy side, because the error variants are all private.

@bfops

bfops commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

it generally indicates user error

We could omit the error message, maybe? There's just not much we can do on the proxy side, because the error variants are all private.

I think the general problem is that error logs should be for actual errors, but a user's mistake isn't really a programmer or runtime error. Our system is usually working perfectly fine when the so-called errors happen.

Maybe we could downgrade it to debug? Either way, we haven't changed it yet, and this extra info seems generally useful.

@kim

kim commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Well ok, maybe something else is going on: we do have a log for when the module rejects the connection, but that doesn't appear in the production logs. In fact, nothing obviously related appears.

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.

2 participants