-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdk: Lower client cache log severities #162
Conversation
In particular, avoid logging entire rows above `trace`.
On the fence re |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @Centril that the conditionals on log level clog the code in a way I don't love. I don't see much reason to offer the higher-level logs which don't include the row; it seems to me that these logs are useful only when debugging row representation and database state, so just knowing that some mysterious row was inserted/deleted/maintained seems unlikely to be useful.
I'd also appreciate being consistent about the log level: handle_row_update
should log at trace
the same as the other methods.
I mean, any of the |
Seriously? That does not seem like a viable option when using the sdk in a server context. Rather, I'd like to have some way of getting notified if / when some error state is encountered, so I can just throw away the client and re-initialize it. |
Hm ok, if that can be inferred with some certainty, |
As things stand now, both the module and the client must share a single canonical schema. With the tools we have now, recovering from a mismatch involves regenerating the client's The only alternative to a schema mismatch I can think of is receiving corrupted data, which given that we communicate over TCP is also probably a world-ending (or process-ending) problem. |
Okay, so, if these are all fatal errors, how can I know they happened and terminate my process accordingly? |
We can move this discussion elsewhere if you prefer, but for what I'm doing I think I'd prefer those cases to cause a panic (perhaps feature-gated?). Except for connection errors, in which case it would be great to be able to reconnect. |
I'll defer this review to @gefjon since they are the domain expert here. |
Description of Changes
In particular, avoid logging entire rows above
trace
.API
If the API is breaking, please state below what will break