Skip to content

Commit

Permalink
Restore logger.Start() setup due to missing values (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanio authored Aug 14, 2024
2 parents a5b1287 + 6d2371f commit 2ec042b
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions internal/cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,6 @@ var (
// closed.
shutdownMetrics = 5

// loggerConfig provides the application information which will be used for
// every log line to help provide context to all logs.
loggerConfig = &map[string]string{
"name": Name,
"version": Version,
"commit": Commit,
"arch": Architecture,
"build-date": BuildDate,
}

// serveCmd represents the serve command for the dashboard application, and will
// provide the setup and arguments needed for the application to start the web
// service and start processing events.
Expand Down Expand Up @@ -152,7 +142,13 @@ func runServe(_ *cobra.Command, _ []string) error {
}

gin.SetMode(gin.ReleaseMode)
logger.Start(loggerConfig)
logger.Start(&map[string]string{
"name": Name,
"version": Version,
"commit": Commit,
"arch": Architecture,
"build-date": BuildDate,
})

// Create a context that listens for the interrupt signal from the Operating
// System so we can capture it and then trigger a graceful shutdown
Expand Down

0 comments on commit 2ec042b

Please sign in to comment.