mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
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:
parent
f45ad230a2
commit
b223924044
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user