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

[Merged by Bors] - Remove obsolete log package functions #6252

Closed
wants to merge 2 commits into from

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Aug 13, 2024

Motivation

This is another step in the gradual removal of the log package from the node. Many now unused functions were removed.

Description

Removed functionality from the log package that isn't used any more and refactored code a bit to not use globals any more (e.g. log.Json(true)). The global logger isn't fully removed yet, since it is still used in some places.

Test Plan

  • existing tests pass

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed
  • Update changelog as needed

@fasmat fasmat self-assigned this Aug 13, 2024
@fasmat
Copy link
Member Author

fasmat commented Aug 13, 2024

bors try

spacemesh-bors bot added a commit that referenced this pull request Aug 13, 2024
Copy link

codecov bot commented Aug 13, 2024

Codecov Report

Attention: Patch coverage is 60.75949% with 31 lines in your changes missing coverage. Please review.

Project coverage is 82.0%. Comparing base (dbcaf5c) to head (36a7005).
Report is 1 commits behind head on develop.

Files Patch % Lines
node/node.go 23.0% 6 Missing and 4 partials ⚠️
events/reporter.go 0.0% 5 Missing ⚠️
common/types/poet.go 0.0% 4 Missing ⚠️
log/zap.go 42.8% 4 Missing ⚠️
common/types/eligibility.go 0.0% 3 Missing ⚠️
common/types/transaction_result.go 0.0% 3 Missing ⚠️
common/types/activation.go 83.3% 1 Missing ⚠️
fetch/wire_types.go 50.0% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #6252     +/-   ##
=========================================
- Coverage     82.1%   82.0%   -0.1%     
=========================================
  Files          308     308             
  Lines        34121   34087     -34     
=========================================
- Hits         28019   27983     -36     
- Misses        4330    4335      +5     
+ Partials      1772    1769      -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@spacemesh-bors
Copy link

try

Build failed:

@fasmat fasmat force-pushed the remove-obsolete-log-package-functions branch from af47638 to 36a7005 Compare August 13, 2024 16:50
@fasmat
Copy link
Member Author

fasmat commented Aug 13, 2024

bors try

spacemesh-bors bot added a commit that referenced this pull request Aug 13, 2024
@spacemesh-bors
Copy link

try

Build failed:

events/reporter.go Show resolved Hide resolved
@fasmat
Copy link
Member Author

fasmat commented Aug 14, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Aug 14, 2024
## Motivation

This is another step in the gradual removal of the `log` package from the node. Many now unused functions were removed.
@spacemesh-bors
Copy link

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Aug 14, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Aug 14, 2024
## Motivation

This is another step in the gradual removal of the `log` package from the node. Many now unused functions were removed.
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Remove obsolete log package functions [Merged by Bors] - Remove obsolete log package functions Aug 14, 2024
@spacemesh-bors spacemesh-bors bot closed this Aug 14, 2024
@spacemesh-bors spacemesh-bors bot deleted the remove-obsolete-log-package-functions branch August 14, 2024 10:27
spacemesh-bors bot pushed a commit that referenced this pull request Aug 16, 2024
## Motivation

Follow up to this discussion: #6252 (comment)

Removal of the global logger from (most of) the event package.
spacemesh-bors bot pushed a commit that referenced this pull request Aug 16, 2024
## Motivation

Follow up to this discussion: #6252 (comment)

Removal of the global logger from (most of) the event package.
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