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

feat(relayer): use go 1.21.0 new structured logger #14416

Merged
merged 12 commits into from
Aug 9, 2023
Merged

Conversation

cyberhorsey
Copy link
Contributor

@cyberhorsey cyberhorsey commented Aug 9, 2023

go 1.21 release today has its own structured logger, i replaced sirepsun/logrus with this. This PR also addresses golint being deprecated and switches to revive, since go 1.21.0 is not compatible with golint, then temporarily disables it until the config is mathced up with the latest 1.21.0 changes.

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #14416 (da0573f) into nft_indexer (33bdb41) will increase coverage by 0.04%.
The diff coverage is 63.07%.

@@               Coverage Diff               @@
##           nft_indexer   #14416      +/-   ##
===============================================
+ Coverage        65.44%   65.48%   +0.04%     
===============================================
  Files               90       90              
  Lines             3160     3155       -5     
  Branches           112      112              
===============================================
- Hits              2068     2066       -2     
+ Misses             966      963       -3     
  Partials           126      126              
Flag Coverage Δ *Carryforward flag
bridge-ui 94.25% <ø> (ø) Carriedforward from 2963116
eventindexer 43.90% <0.00%> (ø)
relayer 59.19% <67.21%> (+0.06%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Files Changed Coverage Δ
packages/eventindexer/http/get_pos_stats.go 26.31% <0.00%> (ø)
packages/relayer/cli/cli.go 59.77% <ø> (+0.44%) ⬆️
...ackages/relayer/indexer/detect_and_handle_reorg.go 33.33% <0.00%> (ø)
...ayer/indexer/save_message_status_changed_events.go 12.50% <0.00%> (ø)
packages/relayer/indexer/subscribe.go 58.33% <58.82%> (+1.34%) ⬆️
packages/relayer/message/wait_header_synced.go 65.00% <64.28%> (-0.12%) ⬇️
packages/relayer/indexer/handle_event.go 40.54% <75.00%> (ø)
packages/relayer/message/process_message.go 40.35% <75.00%> (-0.54%) ⬇️
packages/relayer/indexer/filter_then_subscribe.go 21.69% <83.33%> (ø)
...kages/relayer/indexer/handle_no_events_in_batch.go 70.00% <100.00%> (ø)
... and 1 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@davidtaikocha davidtaikocha merged commit 0d9cf6c into nft_indexer Aug 9, 2023
@davidtaikocha davidtaikocha deleted the slog branch August 9, 2023 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants