-
Notifications
You must be signed in to change notification settings - Fork 90
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
Conversation
Codecov ReportBase: 53.39% // Head: 53.67% // Increases project coverage by
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
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. |
app/version/version.go
Outdated
@@ -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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version.LogInfo
There was a problem hiding this comment.
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...
app/version/version.go
Outdated
@@ -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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version.LogInfo
app/version/version.go
Outdated
@@ -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) { |
There was a problem hiding this comment.
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...
Adds a common function to log charon version information on startup.
category: feature
ticket: #1194