-
Notifications
You must be signed in to change notification settings - Fork 64
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
Adds debug logs to RPC requests and improves the ones for the http interface #177
Conversation
ACK moving logs to internal.rs, but haven't found a way to tell the module path of the caller (http.rs, or other module) in the log without passing it in args :(. |
I don't really think there is any using the current logging library |
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.
Think we better set the logs from the private api to level info
because they don't occur pretty often (does this translate to importance?), but not very sure should.
LGTM otherwise.
I think it should be debug. Paraphrasing
|
Nvm about this. We should not do it given we're keeping track of the IP that sends the request. Given this is a HTTP-> gRPC bridge, if we log requests from the internal API they will always come from us, losing that info. I don't think there's a point either in forwarding that info to the internal API, so we may want to keep the logs where they are. |
I guess they have an RPC category in the debug because a bitcoin core daemon would usually get many RPC calls from various applications depending on it. The thing is, private api RPC calls are not that frequent, that's why im thinking of them as info. Tried searching SoF for best practice but still unable to categorize this case :/. |
bbd0ddf
to
4a3fdae
Compare
Ok, as discussed in discord, we're reducing the severity of the logs to reduce the size of the log file |
Also updates the severity from the http logs from info to debug
4a3fdae
to
72b1805
Compare
Also updates the severity from the http logs from info to debug