Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
powerman committed Mar 12, 2021
1 parent 4dde95e commit e0d20ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/mono/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ func runServeWithGracefulShutdown(_ *cobra.Command, _ []string) error {

services := make([]func(Ctx) error, len(embeddedServices))
for i := range embeddedServices {
name := embeddedServices[i].Name()
runServe := embeddedServices[i].RunServe
log := structlog.New(structlog.KeyApp, embeddedServices[i].Name())
log := structlog.New(structlog.KeyApp, name)
ctxStartup := structlog.NewContext(ctxStartup, log) //nolint:govet // Shadow.
services[i] = func(ctxShutdown Ctx) error {
ctxShutdown = structlog.NewContext(ctxShutdown, log)
Expand Down

0 comments on commit e0d20ac

Please sign in to comment.