Skip to content

Commit

Permalink
PushBatch debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Plakhotnikov Vladimir committed Apr 2, 2024
1 parent f3e0683 commit 56ff7ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ func (p *Plugin) PushBatch(ctx context.Context, j []jobsApi.Message) error {
ctxPush, cancel := context.WithTimeout(ctx, time.Second*time.Duration(p.cfg.Timeout))
err := d.(jobsApi.Driver).Push(ctxPush, j[i])
if err != nil {
cancel()
p.metrics.CountPushErr()
p.log.Error("job push batch error", zap.String("ID", j[i].ID()), zap.String("pipeline", ppl.Name()), zap.String("driver", ppl.Driver()), zap.Time("start", start), zap.Int64("elapsed", time.Since(start).Milliseconds()), zap.Error(err))
cancel()
return errors.E(op, err)
}

Expand Down

0 comments on commit 56ff7ed

Please sign in to comment.