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

Disable automaxprocs logging #1632

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Disable automaxprocs logging #1632

merged 1 commit into from
Jan 12, 2024

Conversation

joshklop
Copy link
Contributor

@joshklop joshklop commented Jan 4, 2024

No description provided.

@joshklop joshklop requested a review from IronGauntlets January 4, 2024 21:49
@joshklop joshklop force-pushed the joshklop/automaxprocs-log branch from 6a3ee99 to 38c161b Compare January 4, 2024 21:58
Copy link

codecov bot commented Jan 4, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (bfdcb48) 73.25% compared to head (6dfb395) 73.22%.

Files Patch % Lines
cmd/juno/juno.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1632      +/-   ##
==========================================
- Coverage   73.25%   73.22%   -0.03%     
==========================================
  Files         101      101              
  Lines       10377    10381       +4     
==========================================
  Hits         7602     7602              
- Misses       2214     2220       +6     
+ Partials      561      559       -2     

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

@joshklop joshklop force-pushed the joshklop/automaxprocs-log branch 2 times, most recently from 349d9f4 to 6d423a4 Compare January 4, 2024 22:38
@joshklop joshklop added this to the v0.9.3 milestone Jan 8, 2024
When imported using the blank identifier `_`, the automaxprocs package
emits a log after it changes GOMAXPROCS. According to [1], the authors

   wanted to log by default, as setting a global like GOMAXPROCS is a
   significant change which would be surprising if it was done silently
   because some package imported automaxprocs.

Since no one should be importing `cmd/juno` and because we want our log
messages to be consistent, we disable the log by calling Set()
explicitly.

[1] uber-go/automaxprocs#18
@joshklop joshklop force-pushed the joshklop/automaxprocs-log branch from 6d423a4 to 6dfb395 Compare January 11, 2024 19:51
@omerfirmak omerfirmak merged commit 2af3b3b into main Jan 12, 2024
9 of 10 checks passed
@omerfirmak omerfirmak deleted the joshklop/automaxprocs-log branch January 12, 2024 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready For Release
Development

Successfully merging this pull request may close these issues.

2 participants