add logs on flush
This commit is contained in:
@@ -156,6 +156,7 @@ func (m *LogBuffer) loopInterval() {
|
|||||||
toFlush := m.copyToFlush()
|
toFlush := m.copyToFlush()
|
||||||
m.Unlock()
|
m.Unlock()
|
||||||
if toFlush != nil {
|
if toFlush != nil {
|
||||||
|
glog.V(0).Infof("%s flush [%v, %v] size %d", m.name, toFlush.startTime, toFlush.stopTime, len(toFlush.data.Bytes()))
|
||||||
m.flushChan <- toFlush
|
m.flushChan <- toFlush
|
||||||
} else {
|
} else {
|
||||||
// glog.V(0).Infof("%s no flush", m.name)
|
// glog.V(0).Infof("%s no flush", m.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user