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

version: log charon version info on startup #1276

Merged
merged 3 commits into from
Oct 12, 2022
Merged

Conversation

xenowits
Copy link
Contributor

Adds a common function to log charon version information on startup.

category: feature
ticket: #1194

@codecov
Copy link

codecov bot commented Oct 12, 2022

Codecov Report

Base: 53.39% // Head: 53.67% // Increases project coverage by +0.28% 🎉

Coverage data is based on head (f2ee84f) compared to base (9de4974).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1276      +/-   ##
==========================================
+ Coverage   53.39%   53.67%   +0.28%     
==========================================
  Files         139      139              
  Lines       16354    16356       +2     
==========================================
+ Hits         8732     8779      +47     
+ Misses       6367     6322      -45     
  Partials     1255     1255              
Impacted Files Coverage Δ
app/app.go 59.23% <100.00%> (-0.43%) ⬇️
cmd/bootnode.go 32.00% <100.00%> (+0.91%) ⬆️
cmd/createdkg.go 66.33% <100.00%> (+0.68%) ⬆️
dkg/dkg.go 49.53% <100.00%> (+0.23%) ⬆️
core/scheduler/scheduler.go 72.94% <0.00%> (-0.73%) ⬇️
app/vmock.go 71.89% <0.00%> (ø)
core/qbft/qbft.go 81.97% <0.00%> (+10.30%) ⬆️

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.

@@ -40,3 +46,13 @@ func GitCommit() (hash string, timestamp string) {

return hash, timestamp
}

// LogCharonInfo logs charon version information along-with the provided message.
func LogCharonInfo(ctx context.Context, msg string) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i couldn't up with a better name, so suggestions welcome

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version.LogInfo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Charon" is superfluous, since everything in this codebase is charon...

@@ -40,3 +46,13 @@ func GitCommit() (hash string, timestamp string) {

return hash, timestamp
}

// LogCharonInfo logs charon version information along-with the provided message.
func LogCharonInfo(ctx context.Context, msg string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version.LogInfo

@@ -40,3 +46,13 @@ func GitCommit() (hash string, timestamp string) {

return hash, timestamp
}

// LogCharonInfo logs charon version information along-with the provided message.
func LogCharonInfo(ctx context.Context, msg string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Charon" is superfluous, since everything in this codebase is charon...

@xenowits xenowits self-assigned this Oct 12, 2022
@xenowits xenowits added the merge when ready Indicates bulldozer bot may merge when all checks pass label Oct 12, 2022
@obol-bulldozer obol-bulldozer bot merged commit 9ebcc6b into main Oct 12, 2022
@obol-bulldozer obol-bulldozer bot deleted the xenowits/dkg-log branch October 12, 2022 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants