Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Log all signature events at INFO level #271

Merged
merged 1 commit into from
Jun 21, 2019
Merged

Conversation

tarcieri
Copy link
Contributor

...and improve logging at the debug level in general.

Previously the KMS logged no information about what it signed at the default loglevel (INFO). To get that information, you had to log at the DEBUG level.

This adds short loglines at the INFO level. They contain the chain ID, signed message type (proposal, prevote, precommit), and block height.

Additionally, at the debug level it now prints debug messages containing the complete incoming request and response.

...and improve logging at the debug level in general.

Previously the KMS logged no information about what it signed at the
default loglevel (INFO). To get that information, you had to log at the
DEBUG level.

This adds short loglines at the INFO level. They contain the chain ID,
signed message type (proposal, prevote, precommit), and block height.

Additionally, at the debug level it now prints debug messages containing
the complete incoming request and response.
@tarcieri tarcieri requested a review from liamsi June 21, 2019 20:57
@tarcieri
Copy link
Contributor Author

@liamsi this might be good for you to review (I might merge it anyway to get another alpha release out I can test), since it touches some of the amino code.

I've tried to do it in the least invasive way possible which, if I did everything right, adds no new runtime error potential, so I'm not too worried.

@tarcieri tarcieri merged commit 6a6bada into master Jun 21, 2019
@tarcieri tarcieri deleted the log-signing-requests branch June 21, 2019 21:07
@tarcieri tarcieri mentioned this pull request Jun 24, 2019
@tarcieri tarcieri mentioned this pull request Jul 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants