Skip to content

Commit

Permalink
fix the log prefix (dgraph-io#652)
Browse files Browse the repository at this point in the history
The log prefix is wrong, it produces ugly output like this by default:

    badger2018/12/28 19:28:54 INFO: Replaying file id: 0 at offset: 0
    badger2018/12/28 19:28:54 INFO: Replay took: 40.007µs
  • Loading branch information
vrischmann authored and manishrjain committed Dec 28, 2018
1 parent 4738bcf commit 7b9d6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type defaultLog struct {
*log.Logger
}

var defaultLogger = &defaultLog{Logger: log.New(os.Stderr, "badger", log.LstdFlags)}
var defaultLogger = &defaultLog{Logger: log.New(os.Stderr, "badger ", log.LstdFlags)}

func UseDefaultLogger() { SetLogger(defaultLogger) }

Expand Down

0 comments on commit 7b9d6e3

Please sign in to comment.