Skip to content

Commit

Permalink
Merge pull request #690 from Icinga/startup-show-version-i689
Browse files Browse the repository at this point in the history
cmd/icingadb: Log Icinga DB version during startup
  • Loading branch information
julianbrost authored Mar 12, 2024
2 parents 526679a + 3e5ca98 commit 25c6e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/icingadb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"github.com/go-redis/redis/v8"
"github.com/icinga/icingadb/internal"
"github.com/icinga/icingadb/internal/command"
"github.com/icinga/icingadb/pkg/common"
"github.com/icinga/icingadb/pkg/icingadb"
Expand Down Expand Up @@ -55,7 +56,7 @@ func run() int {
logger := logs.GetLogger()
defer logger.Sync()

logger.Info("Starting Icinga DB")
logger.Infof("Starting Icinga DB daemon (%s)", internal.Version.Version)

db, err := cmd.Database(logs.GetChildLogger("database"))
if err != nil {
Expand Down

0 comments on commit 25c6e1c

Please sign in to comment.