Monorepo for Tangled tangled.org

knotserver: improve the logging situation #653

closed opened by oppi.li targeting master from push-nsovyllpxlwk
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3m2rmwxo3eu22
+4 -1
Interdiff #0 โ†’ #1
+4 -1
cmd/knot/main.go
··· 2 3 import ( 4 "context" 5 "os" 6 7 "github.com/urfave/cli/v3" ··· 24 }, 25 } 26 27 - ctx := context.Background() 28 logger := tlog.New("knot") 29 ctx = tlog.IntoContext(ctx, logger) 30 31 if err := cmd.Run(ctx, os.Args); err != nil {
··· 2 3 import ( 4 "context" 5 + "log/slog" 6 "os" 7 8 "github.com/urfave/cli/v3" ··· 25 }, 26 } 27 28 logger := tlog.New("knot") 29 + slog.SetDefault(logger) 30 + 31 + ctx := context.Background() 32 ctx = tlog.IntoContext(ctx, logger) 33 34 if err := cmd.Run(ctx, os.Args); err != nil {
knotserver/events.go

This file has not been changed.

knotserver/git.go

This file has not been changed.

knotserver/internal.go

This file has not been changed.

knotserver/middleware.go

This file has not been changed.

knotserver/router.go

This file has not been changed.

knotserver/server.go

This file has not been changed.

log/log.go

This file has not been changed.

History

2 rounds 0 comments
sign up or login to add to the discussion
oppi.li submitted #1
1 commit
expand
knotserver: improve the logging situation
expand 0 comments
closed without merging
oppi.li submitted #0
1 commit
expand
knotserver: improve the logging situation
expand 0 comments