Skip to content

Commit 9580cf9

Browse files
authored
Merge pull request #51 from Team-MostWanted/feature/version-info-on-startup
added version info on startup
2 parents c6d838c + 4f6772e commit 9580cf9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) with the minor change that we use a prefix instead of grouping.
55
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.23.0] - 2025-05-16
8+
- Added: version information on startup
9+
710
## [1.22.0] - 2025-05-15
811
- Added: unauthenticated health check page
912

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ func init() {
2424
func main() {
2525
setup()
2626

27+
version := fmt.Sprintf("%s, %s (%s), build: %s", name, version, date, commit)
2728
addr := fmt.Sprintf("%s:%d", config.server.host, config.server.port)
2829

29-
log.Info("Started on ", addr)
30+
log.Infof("Started %s on %s", version, addr)
3031

3132
r := http.NewServeMux()
3233
if config.server.authUser != "" && config.server.authPW != "" {

0 commit comments

Comments
 (0)