Skip to content

Migrate to slog

Migrate to slog #721

Triggered via pull request February 27, 2024 14:39
Status Failure
Total duration 2m 28s
Artifacts

docker.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 1 warning
Docker Build: cmd/metal-api/main.go#L26
could not import github.com/metal-stack/metal-api/cmd/metal-api/internal/grpc (-: # github.com/metal-stack/metal-api/cmd/metal-api/internal/grpc
Docker Build: cmd/metal-api/internal/grpc/grpc-server.go#L76
log.Desugar undefined (type *slog.Logger has no field or method Desugar)
Docker Build: cmd/metal-api/internal/grpc/grpc-server.go#L97
log.Named undefined (type *slog.Logger has no field or method Named)
Docker Build: cmd/metal-api/internal/grpc/grpc-server.go#L98
log.Named undefined (type *slog.Logger has no field or method Named)
Docker Build: cmd/metal-api/internal/grpc/grpc-server.go#L106
log.Desugar undefined (type *slog.Logger has no field or method Desugar)
Docker Build: cmd/metal-api/internal/grpc/grpc-server.go#L113
log.Desugar undefined (type *slog.Logger has no field or method Desugar)) (typecheck)
Docker Build: cmd/metal-api/main.go#L48
could not import github.com/metal-stack/metal-api/cmd/metal-api/internal/eventbus (-: # github.com/metal-stack/metal-api/cmd/metal-api/internal/eventbus
Docker Build: cmd/metal-api/internal/eventbus/nsq.go#L51
cannot use n.logger (variable of type *slog.Logger) as *zap.Logger value in argument to bus.NewConsumer) (typecheck)
Docker Build: cmd/metal-api/main.go#L52
could not import github.com/metal-stack/metal-api/cmd/metal-api/internal/service (-: # github.com/metal-stack/metal-api/cmd/metal-api/internal/service
Docker Build: cmd/metal-api/internal/service/service.go#L37
cannot use w.log (variable of type *"log/slog".Logger) as *zap.SugaredLogger value in argument to rest.GetLoggerFromContext
integration: cmd/metal-api/internal/eventbus/nsq.go#L51
cannot use n.logger (variable of type *slog.Logger) as *zap.Logger value in argument to bus.NewConsumer
integration: cmd/metal-api/internal/grpc/grpc-server.go#L76
log.Desugar undefined (type *slog.Logger has no field or method Desugar)
integration: cmd/metal-api/internal/grpc/grpc-server.go#L97
log.Named undefined (type *slog.Logger has no field or method Named)
integration: cmd/metal-api/internal/grpc/grpc-server.go#L98
log.Named undefined (type *slog.Logger has no field or method Named)
integration: cmd/metal-api/internal/grpc/grpc-server.go#L106
log.Desugar undefined (type *slog.Logger has no field or method Desugar)
integration: cmd/metal-api/internal/grpc/grpc-server.go#L113
log.Desugar undefined (type *slog.Logger has no field or method Desugar)
integration: cmd/metal-api/internal/service/service.go#L37
cannot use w.log (variable of type *"log/slog".Logger) as *zap.SugaredLogger value in argument to rest.GetLoggerFromContext
integration: cmd/metal-api/internal/service/service.go#L38
cannot use requestLogger.WithOptions(zap.AddCallerSkip(1)) (value of type *zap.SugaredLogger) as *"log/slog".Logger value in return statement
integration: cmd/metal-api/internal/service/service.go#L210
cannot use e.logger (variable of type *"log/slog".Logger) as *zap.SugaredLogger value in argument to rest.GetLoggerFromContext
integration: cmd/metal-api/internal/service/service.go#L213
cannot use requestLogger (variable of type *zap.SugaredLogger) as *"log/slog".Logger value in argument to send
Docker Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.