Skip to content

Commit 5011864

Browse files
auxtenQi Xiao
authored andcommitted
CallerHook disabled in Warning Info Debug
1 parent a185ed9 commit 5011864

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

kayak/runtime.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -628,12 +628,6 @@ func (r *Runtime) followerDoCommit(req *commitReq) (err error) {
628628
// check for last commit availability
629629
myLastCommit := atomic.LoadUint64(&r.lastCommit)
630630
if req.lastCommit != myLastCommit {
631-
// wait for next round
632-
log.WithFields(log.Fields{
633-
"expected": req.lastCommit,
634-
"actual": myLastCommit,
635-
}).Warning("new commit arrived too early, wait for real commit")
636-
637631
// TODO(): need counter for retries, infinite commit re-order would cause troubles
638632
go func(req *commitReq) {
639633
r.commitCh <- req

utils/log/logwrapper.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ func (hook *CallerHook) Levels() []logrus.Level {
102102
logrus.PanicLevel,
103103
logrus.FatalLevel,
104104
logrus.ErrorLevel,
105-
logrus.WarnLevel,
106-
logrus.InfoLevel,
107-
logrus.DebugLevel,
105+
//logrus.WarnLevel,
106+
//logrus.InfoLevel,
107+
//logrus.DebugLevel,
108108
}
109109
}
110110

0 commit comments

Comments
 (0)