diff --git a/internal/attestation/snp/validator.go b/internal/attestation/snp/validator.go index 5371c8acf7..6b6bfcd51b 100644 --- a/internal/attestation/snp/validator.go +++ b/internal/attestation/snp/validator.go @@ -10,7 +10,6 @@ import ( "fmt" "log/slog" - "github.com/edgelesssys/contrast/internal/logger" "github.com/edgelesssys/contrast/internal/oid" "github.com/google/go-sev-guest/abi" "github.com/google/go-sev-guest/proto/sevsnp" @@ -69,7 +68,7 @@ func NewValidatorWithCallbacks(optsGen validateOptsGenerator, kdsGetter trust.HT validateOptsGen: optsGen, callbackers: callbacks, kdsGetter: kdsGetter, - logger: slog.New(logger.NewHandler(log.Handler(), "snp-validator")), + logger: log, metrics: metrics{attestationFailures: attestataionFailures}, } } diff --git a/internal/kuberesource/parts.go b/internal/kuberesource/parts.go index 05dc0e8728..b50d78ab97 100644 --- a/internal/kuberesource/parts.go +++ b/internal/kuberesource/parts.go @@ -154,6 +154,7 @@ func Coordinator(namespace string) *CoordinatorConfig { Container(). WithName("coordinator"). WithImage("ghcr.io/edgelesssys/contrast/coordinator:latest"). + WithEnv(NewEnvVar("CONTRAST_LOG_SUBSYSTEMS", "snp-validator")). WithVolumeDevices(applycorev1.VolumeDevice(). WithName("state-device"). WithDevicePath("/dev/csi0"),