Skip to content

Commit

Permalink
Revert "Write debug logs to stderr (#203)" (#208)
Browse files Browse the repository at this point in the history
This reverts commit fc90414.
  • Loading branch information
Oats87 authored May 11, 2023
1 parent 1ab6e01 commit 2c59804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmachine/log/fmt_machine_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ func (ml *FmtMachineLogger) SetErrWriter(err io.Writer) {
func (ml *FmtMachineLogger) Debug(args ...interface{}) {
ml.history.Record(args...)
if ml.debug {
fmt.Fprintln(ml.errWriter, args...)
fmt.Fprintln(ml.outWriter, args...)
}
}

func (ml *FmtMachineLogger) Debugf(fmtString string, args ...interface{}) {
ml.history.Recordf(fmtString, args...)
if ml.debug {
fmt.Fprintf(ml.errWriter, fmtString+"\n", args...)
fmt.Fprintf(ml.outWriter, fmtString+"\n", args...)
}
}

Expand Down

0 comments on commit 2c59804

Please sign in to comment.