Browse Source

add logs on flush

pull/5637/head
chrislu 12 months ago
parent
commit
1206313952
  1. 1
      weed/util/log_buffer/log_buffer.go

1
weed/util/log_buffer/log_buffer.go

@ -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)

Loading…
Cancel
Save