mirror of
https://github.com/shazow/ssh-chat.git
synced 2026-10-29 01:26:16 +03:00
logger: change nil bytes.Buffer into ioutil.Discard (#293)
This commit is contained in:
1 parent
40bf204058
commit
429ebbf60d
1 file changed
+2
-3
@@ -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))
|
||||
}
|
||||
Reference in new issue
Block a user