Skip to content

Commit

Permalink
♻️ refactor: refactor codebase #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Dec 14, 2024
1 parent 0d5ed2c commit 59eda00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ func (w *wrapper) WithDebuggingKV(key string, value interface{}) *wrapper {
// WithDebuggingKVf adds a formatted key-value pair to the debugging information in the `wrapper` instance.
//
// This function creates a formatted string value using the provided `format` string and `args`,
// then delegates to `WithCustomFieldKV` to add the resulting key-value pair to the `debug` map.
// then delegates to `WithDebuggingKV` to add the resulting key-value pair to the `debug` map.
// It returns the modified `wrapper` instance for method chaining.
//
// Parameters:
Expand All @@ -715,7 +715,7 @@ func (w *wrapper) WithDebuggingKV(key string, value interface{}) *wrapper {
// Returns:
// - A pointer to the modified `wrapper` instance, enabling method chaining.
func (w *wrapper) WithDebuggingKVf(key string, format string, args ...interface{}) *wrapper {
return w.WithCustomFieldKV(key, fmt.Sprintf(format, args...))
return w.WithDebuggingKV(key, fmt.Sprintf(format, args...))
}

// WithApiVersion sets the API version in the `meta` field of the `wrapper` instance.
Expand Down

0 comments on commit 59eda00

Please sign in to comment.