Skip to content

Commit

Permalink
removing debugging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Feb 27, 2024
1 parent c02ee05 commit a6f2bef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions pipeline/process_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,6 @@ func (p *Pipeline) handleStepNew(ctx context.Context, block *pbbstream.Block, cl
}

dmetering.GetBytesMeter(ctx).CountInc("wasm_input_bytes", len(block.Payload.Value))
if block.Number%100 == 0 {
logger.Debug("comparing block payload size", zap.Int("wasm_input_bytes", len(block.Payload.Value)), zap.Int("wasm_input_bytes_count", dmetering.GetBytesMeter(ctx).GetCount("wasm_input_bytes")))
}

if err := p.executeModules(ctx, execOutput); err != nil {
return fmt.Errorf("execute modules: %w", err)
Expand Down
7 changes: 0 additions & 7 deletions service/metering.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ func sendMetering(meter dmetering.Meter, userID, apiKeyID, ip, userMeta, endpoin
inputBytes := meter.GetCount("wasm_input_bytes")
meter.ResetCount("wasm_input_bytes")

logger.Debug("sending metering event",
zap.Uint64("bytes_read", bytesRead),
zap.Uint64("bytes_written", bytesWritten),
zap.Int("wasm_input_bytes", inputBytes),
zap.Int("egress_bytes", egressBytes),
)

event := dmetering.Event{
UserID: userID,
ApiKeyID: apiKeyID,
Expand Down

0 comments on commit a6f2bef

Please sign in to comment.