Signed-off-by: oppiliappan me@oppi.li
+4
-1
cmd/knot/main.go
+4
-1
cmd/knot/main.go
···
2
2
3
3
import (
4
4
"context"
5
+
"log/slog"
5
6
"os"
6
7
7
8
"github.com/urfave/cli/v3"
···
24
25
},
25
26
}
26
27
27
-
ctx := context.Background()
28
28
logger := tlog.New("knot")
29
+
slog.SetDefault(logger)
30
+
31
+
ctx := context.Background()
29
32
ctx = tlog.IntoContext(ctx, logger)
30
33
31
34
if err := cmd.Run(ctx, os.Args); err != nil {
knotserver/events.go
knotserver/events.go
This file has not been changed.
knotserver/git.go
knotserver/git.go
This file has not been changed.
knotserver/internal.go
knotserver/internal.go
This file has not been changed.
knotserver/middleware.go
knotserver/middleware.go
This file has not been changed.
knotserver/router.go
knotserver/router.go
This file has not been changed.
knotserver/server.go
knotserver/server.go
This file has not been changed.
log/log.go
log/log.go
This file has not been changed.
History
2 rounds
0 comments
expand 0 comments
closed without merging
1 commit
expand
collapse
knotserver: improve the logging situation
Signed-off-by: oppiliappan <me@oppi.li>