This commit is contained in:
Malte Poll 2024-01-22 15:52:23 +01:00 committed by miampf
parent d80383d993
commit 972f832a6e
No known key found for this signature in database
GPG key ID: 376EAC0E5307A669
10 changed files with 31 additions and 31 deletions

View file

@ -11,12 +11,12 @@ import (
"context"
"errors"
"io"
"log/slog"
"net"
"strings"
"sync"
"testing"
"time"
"log/slog"
"github.com/edgelesssys/constellation/v2/bootstrapper/initproto"
"github.com/edgelesssys/constellation/v2/internal/atls"

View file

@ -9,12 +9,12 @@ package joinclient
import (
"context"
"errors"
"log/slog"
"net"
"strconv"
"sync"
"testing"
"time"
"log/slog"
"github.com/edgelesssys/constellation/v2/internal/cloud/metadata"
"github.com/edgelesssys/constellation/v2/internal/constants"

View file

@ -9,10 +9,10 @@ package kubernetes
import (
"context"
"errors"
"log/slog"
"net"
"strconv"
"testing"
"log/slog"
"github.com/edgelesssys/constellation/v2/bootstrapper/internal/kubernetes/k8sapi"
"github.com/edgelesssys/constellation/v2/bootstrapper/internal/kubernetes/kubewaiter"

View file

@ -10,10 +10,10 @@ package integration
import (
"fmt"
"math"
"testing"
"log/slog"
"math"
"os"
"testing"
"github.com/edgelesssys/constellation/v2/disk-mapper/internal/diskencryption"
"github.com/martinjungblut/go-cryptsetup"

View file

@ -12,13 +12,13 @@ import (
"encoding/json"
"flag"
"fmt"
"log/slog"
"os"
"os/exec"
"path/filepath"
"strings"
"syscall"
"testing"
"log/slog"
"github.com/bazelbuild/rules_go/go/runfiles"
"github.com/edgelesssys/constellation/v2/disk-mapper/internal/diskencryption"

View file

@ -5,6 +5,7 @@ go_library(
srcs = [
"cmdline.go",
"grpclogger.go",
"levelhandler.go",
"log.go",
],
importpath = "github.com/edgelesssys/constellation/v2/internal/logger",

View file

@ -4,12 +4,11 @@ Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: AGPL-3.0-only
*/
package logger
import (
"log/slog"
"context"
"log/slog"
)
// LevelHandler copied from the official LevelHandler example in the slog package documentation.

View file

@ -110,7 +110,7 @@ func middlewareLogger(l *slog.Logger) logging.Logger {
})
}
func NewTest(t * testing.T) *slog.Logger {
func NewTest(t *testing.T) *slog.Logger {
return slog.New(slog.NewTextHandler(testWriter{t: t}, nil))
}

View file

@ -8,8 +8,8 @@ package amdkds
import (
"fmt"
"testing"
"log/slog"
"testing"
"github.com/edgelesssys/constellation/v2/internal/logger"
"github.com/edgelesssys/constellation/v2/joinservice/internal/certcache/amdkds/testdata"