Skip to content

Commit a4cbb64

Browse files
authored
Merge pull request #5437 from chymy/cm-20210127
Fix klog.Infof change to klog.InfoS err
2 parents c78c262 + 8c193ef commit a4cbb64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contributors/devel/sig-instrumentation/migration-to-structured-logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ klog.Infof("delete pod %s with propagation policy %s", ...)
173173
```
174174
should be changed to
175175
```go
176-
klog.Infof("Deleted pod", ...)
176+
klog.InfoS("Deleted pod", ...)
177177
```
178178

179179
Some logs are constructed solely from string formats. In those cases a message needs to be derived from the context of

0 commit comments

Comments
 (0)