fhmq/hmq#5 added zap logger (#11)

This commit is contained in:
Marc Magnin
2018-01-26 06:51:36 +01:00
committed by joy.zhou
parent 1058256235
commit ef252550dc
10 changed files with 163 additions and 89 deletions

View File

@@ -6,7 +6,7 @@ import (
"errors"
"sync"
log "github.com/cihub/seelog"
"go.uber.org/zap"
)
// A result structure better optimized for queue subs.
@@ -211,7 +211,7 @@ func (s *Sublist) Match(topic string) *SublistResult {
tokens, err := PublishTopicCheckAndSpilt(topic)
if err != nil {
log.Error("\tserver/sublist.go: ", err)
log.Error("\tserver/sublist.go: ", zap.Error(err))
return nil
}