From f7d2e1c15591ebce0ee2278a926b65c034ed115d Mon Sep 17 00:00:00 2001 From: miampf Date: Wed, 31 Jan 2024 14:01:30 +0100 Subject: [PATCH] added comments to avoid confusion --- .../internal/provider/cluster_resource.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terraform-provider-constellation/internal/provider/cluster_resource.go b/terraform-provider-constellation/internal/provider/cluster_resource.go index ad0b570d8..db88d9712 100644 --- a/terraform-provider-constellation/internal/provider/cluster_resource.go +++ b/terraform-provider-constellation/internal/provider/cluster_resource.go @@ -1240,14 +1240,20 @@ type tfContextLogger struct { ctx context.Context // bind context to struct to satisfy interface } +// Debug takes a format string and arguments as an input and logs +// them using tflog.Debug func (l *tfContextLogger) Debug(format string, args ...any) { tflog.Debug(l.ctx, fmt.Sprintf(format, args...)) } +// Info takes a format string and arguments as an input and logs +// them using tflog.Info func (l *tfContextLogger) Info(format string, args ...any) { tflog.Info(l.ctx, fmt.Sprintf(format, args...)) } +// Warn takes a format string and arguments as an input and logs +// them using tflog.Warn func (l *tfContextLogger) Warn(format string, args ...any) { tflog.Warn(l.ctx, fmt.Sprintf(format, args...)) }