From b223924044e5f61132d970982d326a205e9263d0 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 11 Aug 2020 17:03:57 +0530 Subject: [PATCH] util: rename WarningLog to WarningLogMsg renamed WarningLog function to WarningLogMsg to log with message. Signed-off-by: Madhu Rajanna --- internal/util/log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/util/log.go b/internal/util/log.go index d630ceff9..2a89a6155 100644 --- a/internal/util/log.go +++ b/internal/util/log.go @@ -70,8 +70,8 @@ func ErrorLog(ctx context.Context, message string, args ...interface{}) { klog.ErrorDepth(1, logMessage) } -// WarningLog helps in logging warnings. -func WarningLog(message string, args ...interface{}) { +// WarningLogMsg helps in logging warnings with message. +func WarningLogMsg(message string, args ...interface{}) { logMessage := fmt.Sprintf(message, args...) klog.WarningDepth(1, logMessage) }