logger: change nil bytes.Buffer into ioutil.Discard (#293)

This commit is contained in:
Ulisse mini authored and Andrey Petrov committed 2019-01-23 11:31:33 -05:00
1 parent 40bf204058
commit 429ebbf60d
1 file changed
+2 -3
+2 -3
View File
@@ -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))
}