Skip to content

Commit e0d20ac

Browse files
committed
chore: cleanup
1 parent 4dde95e commit e0d20ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/mono/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ func runServeWithGracefulShutdown(_ *cobra.Command, _ []string) error {
131131

132132
services := make([]func(Ctx) error, len(embeddedServices))
133133
for i := range embeddedServices {
134+
name := embeddedServices[i].Name()
134135
runServe := embeddedServices[i].RunServe
135-
log := structlog.New(structlog.KeyApp, embeddedServices[i].Name())
136+
log := structlog.New(structlog.KeyApp, name)
136137
ctxStartup := structlog.NewContext(ctxStartup, log) //nolint:govet // Shadow.
137138
services[i] = func(ctxShutdown Ctx) error {
138139
ctxShutdown = structlog.NewContext(ctxShutdown, log)

0 commit comments

Comments
 (0)