Skip to content

Commit

Permalink
feat(writer): remove unused (*logWriter).writeInfo method
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 committed Jun 11, 2024
1 parent 19cb951 commit 162795f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions internal/writer/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 162795f

Please sign in to comment.