add logs on flush

This commit is contained in:
chrislu 2024-01-05 15:35:42 -08:00
parent aa5b6a8187
commit 1206313952

View file

@ -156,6 +156,7 @@ func (m *LogBuffer) loopInterval() {
toFlush := m.copyToFlush()
m.Unlock()
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
} else {
// glog.V(0).Infof("%s no flush", m.name)