Handle errors in DecodeMessage, added logging

This commit is contained in:
Jae Kwon
2014-12-29 16:04:38 -08:00
parent 5bace5cce8
commit 591d84947b
5 changed files with 52 additions and 15 deletions

11
binary/log.go Normal file
View File

@ -0,0 +1,11 @@
package binary
import (
"github.com/op/go-logging"
)
var log = logging.MustGetLogger("binary")
func SetBinaryLogger(l *logging.Logger) {
log = l
}