Skip to content

Commit

Permalink
Replace ioutil.Discard with io.Discard
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneli committed Aug 13, 2022
1 parent a358835 commit 4768b87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module gorm.io/gorm

go 1.14
go 1.16

require (
github.com/jinzhu/inflection v1.0.0
Expand Down
6 changes: 3 additions & 3 deletions logger/logger.go
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"errors"
"fmt"
"io/ioutil"
"io"
"log"
"os"
"time"
Expand Down Expand Up @@ -68,8 +68,8 @@ type Interface interface {
}

var (
// Discard Discard logger will print any log to ioutil.Discard
Discard = New(log.New(ioutil.Discard, "", log.LstdFlags), Config{})
// Discard Discard logger will print any log to io.Discard
Discard = New(log.New(io.Discard, "", log.LstdFlags), Config{})
// Default Default logger
Default = New(log.New(os.Stdout, "\r\n", log.LstdFlags), Config{
SlowThreshold: 200 * time.Millisecond,
Expand Down

0 comments on commit 4768b87

Please sign in to comment.