Skip to content

Commit

Permalink
Use log.New(os.Stdout, "", 0) instead of log.Default to avoid go vers…
Browse files Browse the repository at this point in the history
…ion upgrade just because of this.
  • Loading branch information
aligator committed Apr 3, 2021
1 parent 2aa1f2e commit 993d1e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcode/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/aligator/goslice/gcode"
"github.com/aligator/goslice/util/test"
"log"
"os"
"testing"
)

Expand Down Expand Up @@ -41,7 +42,7 @@ func TestGCodeGenerator(t *testing.T) {

generator := gcode.NewGenerator(&data.Options{
GoSlice: data.GoSliceOptions{
Logger: log.Default(),
Logger: log.New(os.Stdout, "", 0),
},
}, gcode.WithRenderer(&fakeRenderer{t: t, c: rendererCounter}))
generator.Init(nil)
Expand Down

0 comments on commit 993d1e8

Please sign in to comment.