Skip to content

Commit

Permalink
change calldepth in file & stdout handler (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangrzneu authored Feb 24, 2020
1 parent 761a809 commit 53c057f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/log/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NewFileHandler(basePath string) Handler {

func (r *fileHandler) Log(lv Level, msg string) {
_ = r.roll()
_ = r.l.Output(6, fmt.Sprintf("[%s] %s", lv, msg))
_ = r.l.Output(5, fmt.Sprintf("[%s] %s", lv, msg))
}

func (r *fileHandler) Close() error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/log/stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func NewStdHandler() Handler {

// Log stdout loging
func (h *stdoutHandler) Log(lv Level, msg string) {
_ = h.out.Output(6, fmt.Sprintf("[%s] %s", lv, msg))
_ = h.out.Output(5, fmt.Sprintf("[%s] %s", lv, msg))
}

// Close stdout loging
Expand Down

0 comments on commit 53c057f

Please sign in to comment.