Skip to content

Commit

Permalink
added comments to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Jan 31, 2024
1 parent ffc158b commit e2200c4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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...))
}
Expand Down

0 comments on commit e2200c4

Please sign in to comment.