Skip to content
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

chore: Use structured logging #688

Merged
merged 1 commit into from
Oct 5, 2022
Merged

chore: Use structured logging #688

merged 1 commit into from
Oct 5, 2022

Conversation

bstasyszyn
Copy link
Contributor

Convert all logs to structured logs where data is logged as key-value pairs.

closes #687

Signed-off-by: Bob Stasyszyn Bob.Stasyszyn@securekey.com

@cla-bot cla-bot bot added the cla-signed label Oct 5, 2022
Convert all logs to structured logs where data is logged as key-value pairs.

closes trustbloc#687

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
@codecov
Copy link

codecov bot commented Oct 5, 2022

Codecov Report

Base: 94.02% // Head: 94.06% // Increases project coverage by +0.04% 🎉

Coverage data is based on head (1fb439a) compared to base (eef47f3).
Patch coverage: 92.97% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #688      +/-   ##
==========================================
+ Coverage   94.02%   94.06%   +0.04%     
==========================================
  Files          77       81       +4     
  Lines        4317     4687     +370     
==========================================
+ Hits         4059     4409     +350     
- Misses        141      160      +19     
- Partials      117      118       +1     
Impacted Files Coverage Δ
pkg/restapi/common/httputil.go 75.00% <50.00%> (ø)
pkg/versions/1_0/txnprovider/handler.go 91.61% <60.00%> (-0.55%) ⬇️
.../versions/1_0/operationapplier/operationapplier.go 90.14% <81.08%> (-1.40%) ⬇️
pkg/batch/writer.go 91.05% <84.21%> (-0.47%) ⬇️
pkg/versions/1_0/txnprovider/provider.go 97.02% <85.00%> (+<0.01%) ⬆️
pkg/processor/processor.go 93.86% <85.45%> (-1.41%) ⬇️
pkg/observer/observer.go 91.42% <85.71%> (+0.25%) ⬆️
pkg/internal/log/logger.go 96.47% <96.47%> (ø)
pkg/internal/log/fields.go 98.18% <98.18%> (ø)
pkg/batch/cutter/cutter.go 93.10% <100.00%> (+0.37%) ⬆️
... and 9 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bstasyszyn bstasyszyn merged commit 1b59b4a into trustbloc:main Oct 5, 2022
@bstasyszyn bstasyszyn deleted the 687 branch October 5, 2022 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use structured logging
3 participants