deps: convert zap to slog (#2825)

This commit is contained in:
miampf 2024-02-08 14:20:01 +00:00 committed by GitHub
parent 3765cb0762
commit 54cce77bab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
182 changed files with 1474 additions and 1509 deletions

View file

@ -13,6 +13,7 @@ import (
_ "embed"
"errors"
"fmt"
"log/slog"
"os"
"os/exec"
"path/filepath"
@ -23,7 +24,6 @@ import (
"github.com/BurntSushi/toml"
"github.com/edgelesssys/constellation/v2/internal/api/versionsapi"
"github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
"github.com/edgelesssys/constellation/v2/internal/logger"
"github.com/edgelesssys/constellation/v2/internal/osimage"
)
@ -36,11 +36,11 @@ const timestampFormat = "20060102150405"
type Uploader struct {
uplosiPath string
log *logger.Logger
log *slog.Logger
}
// New creates a new Uploader.
func New(uplosiPath string, log *logger.Logger) *Uploader {
func New(uplosiPath string, log *slog.Logger) *Uploader {
return &Uploader{
uplosiPath: uplosiPath,
log: log,