util: rename WarningLog to WarningLogMsg

renamed WarningLog function to WarningLogMsg
to log with message.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-08-11 17:03:57 +05:30 committed by mergify[bot]
parent f45ad230a2
commit b223924044

View File

@ -70,8 +70,8 @@ func ErrorLog(ctx context.Context, message string, args ...interface{}) {
klog.ErrorDepth(1, logMessage) klog.ErrorDepth(1, logMessage)
} }
// WarningLog helps in logging warnings. // WarningLogMsg helps in logging warnings with message.
func WarningLog(message string, args ...interface{}) { func WarningLogMsg(message string, args ...interface{}) {
logMessage := fmt.Sprintf(message, args...) logMessage := fmt.Sprintf(message, args...)
klog.WarningDepth(1, logMessage) klog.WarningDepth(1, logMessage)
} }