From 997627c1b83ad558cb678012f47e8fbab0447702 Mon Sep 17 00:00:00 2001 From: bryanqiu Date: Mon, 7 Nov 2022 17:28:31 +0800 Subject: [PATCH] fix typo --- log.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/log.go b/log.go index 4bf6ae9..3860cae 100644 --- a/log.go +++ b/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) }