From 8c193ef247674beabee5c0f5f259458cf5539e76 Mon Sep 17 00:00:00 2001 From: chymy Date: Wed, 27 Jan 2021 18:38:30 +0800 Subject: [PATCH] Fix klog.Infof change to klog.InfoS err Signed-off-by: chymy --- .../sig-instrumentation/migration-to-structured-logging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributors/devel/sig-instrumentation/migration-to-structured-logging.md b/contributors/devel/sig-instrumentation/migration-to-structured-logging.md index d6acb7ea4..5e84e45a4 100644 --- a/contributors/devel/sig-instrumentation/migration-to-structured-logging.md +++ b/contributors/devel/sig-instrumentation/migration-to-structured-logging.md @@ -173,7 +173,7 @@ klog.Infof("delete pod %s with propagation policy %s", ...) ``` should be changed to ```go -klog.Infof("Deleted pod", ...) +klog.InfoS("Deleted pod", ...) ``` Some logs are constructed solely from string formats. In those cases a message needs to be derived from the context of