rust-query-crlite: log more relevant information by default #353
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some usability improvements to the rust-query-crlite utility. You no longer have to pass
-vvvv
to get useful information. Here are some samples of output at different verbosity levels:Default:
With
-v
it provides some diagnostic info:$ rust-query-crlite -v --db crlite_db_stage crtsh 13302141633 INFO - Loaded 1 CRLite filter(s), most recent was downloaded: 0 hours ago DEBUG - Issuer DN: C=IN, OU=emSign PKI, O=eMudhra Technologies Limited, CN=emSign SSL CA - G1 DEBUG - Subject DN: CN=*.posttraining.go.ke DEBUG - Serial number: 1a8e8c301b5a3a19 DEBUG - Issuer SPKI hash: qvzNg6-PS7JbCFR-FL-eAfFZOiN6pXXsH1tc9auHlF8= INFO - 13302141633 Revoked
With
-vv
it logs the result of each clubcard it queried:$ rust-query-crlite -vv --db crlite_db_stage crtsh 13302141633 INFO - Loaded 1 CRLite filter(s), most recent was downloaded: 0 hours ago DEBUG - Issuer DN: C=IN, OU=emSign PKI, O=eMudhra Technologies Limited, CN=emSign SSL CA - G1 DEBUG - Subject DN: CN=*.posttraining.go.ke DEBUG - Serial number: 1a8e8c301b5a3a19 DEBUG - Issuer SPKI hash: qvzNg6-PS7JbCFR-FL-eAfFZOiN6pXXsH1tc9auHlF8= TRACE - 20250606-4-default.filter: Revoked INFO - 13302141633 Revoked
And with
-q
you can silence all output (the return code still encodes the revocation status result).