Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Fix some logging (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
thuningxu authored Nov 30, 2017
1 parent 02eb433 commit d24994e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions services/outputhost/messagecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ func (msgCache *cgMsgCache) manageMessageDeliveryCache() {

if fullCount > 3 && common.Now()-lastPumpHealthLog > common.UnixNanoTime(time.Minute) {
msgCache.logMessageCacheHealth()
lastPumpHealthLog = common.Now()
}

numOutstandingMsgs := msgCache.getOutstandingMsgs()
Expand Down
7 changes: 1 addition & 6 deletions services/outputhost/outputhost.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,7 @@ func (h *OutputHost) OpenConsumerStreamHandler(w http.ResponseWriter, r *http.Re
})

// create thrift stream call wrapper and deligate to streaming call
if err = h.OpenConsumerStream(ctx, wsStream); err != nil {
h.logger.WithField(common.TagDstPth, common.FmtDstPth(path)).
WithField(common.TagCnsPth, common.FmtCnsPth(cgName)).
WithField(common.TagErr, err).Error("unable to open consume stream")
/* Metrics will be logged in OpenConsumerStream*/
}
h.OpenConsumerStream(ctx, wsStream)
}

// OpenConsumerStream is the implementation of the thrift handler for the Out service
Expand Down

0 comments on commit d24994e

Please sign in to comment.