mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-13 15:47:17 +03:00
logger: change nil bytes.Buffer into ioutil.Discard (#293)
This commit is contained in:
parent
40bf204058
commit
429ebbf60d
@ -1,7 +1,7 @@
|
||||
package sshchat
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/alexcesaro/log"
|
||||
"github.com/alexcesaro/log/golog"
|
||||
@ -15,6 +15,5 @@ func SetLogger(l *golog.Logger) {
|
||||
|
||||
func init() {
|
||||
// Set a default null logger
|
||||
var b bytes.Buffer
|
||||
SetLogger(golog.New(&b, log.Debug))
|
||||
SetLogger(golog.New(ioutil.Discard, log.Debug))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user