Skip to content

Commit

Permalink
fix: log capturer
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jan 15, 2025
1 parent 02496df commit f8adf20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/util/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ func SetLevel(l Level) {

func Capture() *bytes.Buffer {
var buf bytes.Buffer
//writer = &buf
//logger.SetOutput(writer)
writer = &buf
tee := io.MultiWriter(writer, os.Stdout)
logger.SetOutput(tee)
return &buf
}

Expand Down

0 comments on commit f8adf20

Please sign in to comment.