Skip to content

Commit

Permalink
remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
lidezhu committed Nov 26, 2024
1 parent af00366 commit e01e725
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions logservice/eventstore/event_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,7 @@ func (e *eventStore) updateMetricsOnce() {
// eventStoreResolvedTsLag := float64(currentPhyTs-minResolvedPhyTs) / 1e3
// metrics.EventStoreResolvedTsLagGauge.Set(eventStoreResolvedTsLag)
dsMetrics := e.ds.GetMetrics()
log.Info("event store update lag metrics try", zap.Uint64("MinHandledTS", dsMetrics.MinHandledTS))
if dsMetrics.MinHandledTS != 0 {
log.Info("event store update lag metrics", zap.Uint64("minHandledTs", dsMetrics.MinHandledTS))
lag := float64(oracle.GetPhysical(time.Now())-oracle.ExtractPhysical(dsMetrics.MinHandledTS)) / 1e3
metrics.EventStoreResolvedTsLagGauge.Set(lag)
}
Expand Down

0 comments on commit e01e725

Please sign in to comment.