Skip to content

Commit

Permalink
Merge pull request #24 from fastbill/fix-log-level-for-stack-trace
Browse files Browse the repository at this point in the history
fix log level that is used when echo calls "Logger.Print"
  • Loading branch information
junedev authored Mar 10, 2020
2 parents ca99031 + 5e1d6cb commit 5adc7c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/echologger.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ func (l Logger) Debugj(j log.JSON) {

// Print implements echo.Logger#Print.
func (l Logger) Print(i ...interface{}) {
l.Debug(fmt.Sprintf("%v", i))
l.Info(fmt.Sprintf("%v", i))
}

// Printf implements echo.Logger#Printf.
func (l Logger) Printf(format string, args ...interface{}) {
l.Debug(fmt.Sprintf(format, args...))
l.Info(fmt.Sprintf(format, args...))
}

// Printj implements echo.Logger#Printj.
func (l Logger) Printj(j log.JSON) {
l.Debug(fmt.Sprintf("%+v", j))
l.Info(fmt.Sprintf("%+v", j))
}

0 comments on commit 5adc7c4

Please sign in to comment.