diff --git a/core/log/context.go b/core/log/context.go index 569109fdba..5b844f99d2 100644 --- a/core/log/context.go +++ b/core/log/context.go @@ -39,7 +39,7 @@ func GetLoggerFromContextOrDiscard(ctx context.Context) *log.Entry { if !ok { logger = log.NewEntry(&log.Logger{ Out: io.Discard, - Level: 0, + Level: log.PanicLevel, }).WithContext(ctx) } return logger diff --git a/plugins/sdk-go/plugin/logger.go b/plugins/sdk-go/plugin/logger.go index 87c05ba0c6..ff6b6db375 100644 --- a/plugins/sdk-go/plugin/logger.go +++ b/plugins/sdk-go/plugin/logger.go @@ -25,7 +25,7 @@ var logger *slog.Logger func init() { var logLevel slog.Level if err := logLevel.UnmarshalText([]byte(getLogLevel())); err != nil { - logLevel = slog.LevelInfo + logLevel = slog.LevelError } logger = slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{