WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 4fd5b23

Browse files
committed
Fix typo
1 parent 79a73b7 commit 4fd5b23

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/log/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func AddSentry(l logr.Logger, opts sentry.ClientOptions, tags map[string]string)
139139
// AddSink extends an existing logr.Logger with a new sink. It returns the new
140140
// logr.Logger, a cleanup function, and an error. Note that values added to the
141141
// existing logr.Logger via [logr.WithValues] before calling this function will
142-
// not be propogated to the new sink, but they will continue to be written to
142+
// not be propagated to the new sink, but they will continue to be written to
143143
// the existing sink.
144144
func AddSink(l logr.Logger, sink logConfig) (logr.Logger, func() error, error) {
145145
if sink.err != nil {

pkg/log/log_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ func TestAddSink(t *testing.T) {
163163
assert.Contains(t, buf2.String(), "line 2")
164164
}
165165

166-
// TestAddSinkDoesNotPropogateValues is a pinning test to document that the
167-
// existing functionality of AddSink will not propogate values added to the
166+
// TestAddSinkDoesNotPropagateValues is a pinning test to document that the
167+
// existing functionality of AddSink will not propagate values added to the
168168
// logger.
169-
func TestAddSinkDoesNotPropogateValues(t *testing.T) {
169+
func TestAddSinkDoesNotPropagateValues(t *testing.T) {
170170
var buf1, buf2 bytes.Buffer
171171
logger, _ := New("service-name",
172172
WithConsoleSink(&buf1),

0 commit comments

Comments
 (0)