fix typo
This commit is contained in:
parent
52b4d750d1
commit
997627c1b8
6
log.go
6
log.go
@ -31,8 +31,8 @@ const ErrLogPanic = "~~~~panic~~~~~~"
|
||||
|
||||
//////////////global log//////////////////begin///////////////////
|
||||
|
||||
func PrintPreety(prefix string, v interface{}) {
|
||||
mylogger.PrintPreety(prefix, v)
|
||||
func PrintPretty(prefix string, v interface{}) {
|
||||
mylogger.PrintPretty(prefix, v)
|
||||
}
|
||||
func DebugfWithDepth(calldepth int, format string, v ...interface{}) {
|
||||
mylogger.DebugfWithDepth(calldepth, format, v...)
|
||||
@ -81,7 +81,7 @@ func (log *Logger) Print(prefix string, v interface{}) {
|
||||
preety, _ := json.Marshal(v)
|
||||
log.logwrite("DEBUGE", 3, prefix+"%s\n", preety)
|
||||
}
|
||||
func (log *Logger) PrintPreety(prefix string, v interface{}) {
|
||||
func (log *Logger) PrintPretty(prefix string, v interface{}) {
|
||||
preety, _ := json.MarshalIndent(v, "==", " ")
|
||||
log.logwrite("DEBUGE", 3, prefix+"%s\n", preety)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user