From 162795fac2ac4f3aa8c6ab3f28a3551fb5d81ca6 Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Tue, 11 Jun 2024 07:57:45 +0700 Subject: [PATCH] feat(writer): remove unused `(*logWriter).writeInfo` method Signed-off-by: Dwi Siswanto --- internal/writer/writer.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/internal/writer/writer.go b/internal/writer/writer.go index d6b2b49..1d63e55 100644 --- a/internal/writer/writer.go +++ b/internal/writer/writer.go @@ -60,18 +60,18 @@ func (w *logWriter) writeDebug(d data) { w.Debug(d["msg"]) } -func (w *logWriter) writeInfo(d data) { - // if opt, ok := d["options"].(data); ok { - // o, err := json.Marshal(opt) - // if err != nil { - // return - // } - - // w.Info(d["msg"], "options", string(o)) - // } else { - w.Info(d["msg"]) - // } -} +// func (w *logWriter) writeInfo(d data) { +// // if opt, ok := d["options"].(data); ok { +// // o, err := json.Marshal(opt) +// // if err != nil { +// // return +// // } + +// // w.Info(d["msg"], "options", string(o)) +// // } else { +// w.Info(d["msg"]) +// // } +// } func (w *logWriter) writeWarn(d data) { if req, ok := d["request"].(data); ok {