mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-08 10:10:30 +08:00
replication master side
This commit is contained in:
@@ -107,6 +107,13 @@ func Error(v ...interface{}) {
|
||||
logger.Println(v...)
|
||||
}
|
||||
|
||||
func Errorf(format string, v ...interface{}) {
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
setPrefix(ERROR)
|
||||
logger.Println(fmt.Sprintf(format, v...))
|
||||
}
|
||||
|
||||
// Fatal prints error log then stop the program
|
||||
func Fatal(v ...interface{}) {
|
||||
mu.Lock()
|
||||
|
Reference in New Issue
Block a user