added comments to avoid confusion

This commit is contained in:
miampf 2024-01-31 14:01:30 +01:00
parent f8a1d92138
commit f7d2e1c155
No known key found for this signature in database
GPG Key ID: 376EAC0E5307A669

View File

@ -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...))
}