mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
util: rename ErrorLog to ErrorLogMsg to parity
as we have 2 functions for logging. one for logging with message and another one is for logging with context. renamed ErrorLog to ErrorLogMsg to log with messages. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
d4186a6880
commit
9229e84a77
@ -58,8 +58,8 @@ func FatalLog(message string, args ...interface{}) {
|
||||
klog.FatalDepth(1, logMessage)
|
||||
}
|
||||
|
||||
// ErrorLog helps in logging errors.
|
||||
func ErrorLog(message string, args ...interface{}) {
|
||||
// ErrorLogMsg helps in logging errors with message.
|
||||
func ErrorLogMsg(message string, args ...interface{}) {
|
||||
logMessage := fmt.Sprintf(message, args...)
|
||||
klog.ErrorDepth(1, logMessage)
|
||||
}
|
||||
|
Reference in New Issue
Block a user