Skip to content

Commit

Permalink
Add logger to test
Browse files Browse the repository at this point in the history
  • Loading branch information
damemi committed Jun 13, 2023
1 parent cacaf82 commit 0283354
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion exporter/collector/integrationtest/inmemoryocexporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ func NewMetricTestExporter(
exporter, err := collector.NewGoogleCloudMetricsExporter(
ctx,
cfg,
zap.NewNop(),
//zap.NewNop(),
zap.NewExample(),
"latest",
collector.DefaultTimeout,
)
Expand Down
2 changes: 1 addition & 1 deletion exporter/collector/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func (me *MetricsExporter) readWALAndExport(ctx context.Context) error {
if time.Duration(backoff*int(time.Second)) >= me.wal.maxBackoff {
break
}
time.Sleep(time.Duration(1<<i) * time.Second)
time.Sleep(time.Duration(backoff) * time.Second)
}

lastIndex, indexErr := me.wal.LastIndex()
Expand Down

0 comments on commit 0283354

Please sign in to comment.