From a4d1334c9df091341ed2ff754a9d40a560004fd2 Mon Sep 17 00:00:00 2001 From: mozillazg Date: Wed, 4 Sep 2024 10:53:22 +0800 Subject: [PATCH] provider: ensure type of DefaultLogger is *defaultLogger --- pkg/credentials/provider/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/credentials/provider/log.go b/pkg/credentials/provider/log.go index c86a6f9a..768261e3 100644 --- a/pkg/credentials/provider/log.go +++ b/pkg/credentials/provider/log.go @@ -15,7 +15,7 @@ type Logger interface { } var defaultLog Logger = &defaultLogger{} -var DefaultLogger = defaultLog +var DefaultLogger = defaultLog.(*defaultLogger) func init() { debugEnv := strings.Split(strings.ToLower(os.Getenv("DEBUG")), ",")