Skip to content

Commit

Permalink
Update driver.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryuk authored Feb 11, 2024
1 parent a595eca commit 016fccb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions amqpjobs/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func (d *Driver) Run(ctx context.Context, p jobs.Pipeline) error {
d.listener(deliv)

atomic.StoreUint32(&d.listeners, 1)
d.log.Debug("pipeline was started", zap.String("driver", pipe.Driver()), zap.String("pipeline", pipe.Name()), zap.Time("start", start), zap.Int("elapsed", time.Since(start).Milliseconds()))
d.log.Debug("pipeline was started", zap.String("driver", pipe.Driver()), zap.String("pipeline", pipe.Name()), zap.Time("start", start), zap.Int64("elapsed", time.Since(start).Milliseconds()))
return nil
}

Expand Down Expand Up @@ -526,7 +526,7 @@ func (d *Driver) Pause(ctx context.Context, p string) error {
zap.String("driver", pipe.Driver()),
zap.String("pipeline", pipe.Name()),
zap.Time("start", start),
zap.Int("elapsed", time.Since(start).Milliseconds()),
zap.Int64("elapsed", time.Since(start).Milliseconds()),
)

return nil
Expand Down Expand Up @@ -595,7 +595,7 @@ func (d *Driver) Resume(ctx context.Context, p string) error {
zap.String("driver", pipe.Driver()),
zap.String("pipeline", pipe.Name()),
zap.Time("start", start),
zap.Int("elapsed", time.Since(start).Milliseconds()),
zap.Int64("elapsed", time.Since(start).Milliseconds()),
)

return nil
Expand All @@ -611,7 +611,7 @@ func (d *Driver) Stop(ctx context.Context) error {
d.stopCh <- struct{}{}

pipe := *d.pipeline.Load()
d.log.Debug("pipeline was stopped", zap.String("driver", pipe.Driver()), zap.String("pipeline", pipe.Name()), zap.Time("start", start), zap.Int("elapsed", time.Since(start).Milliseconds()))
d.log.Debug("pipeline was stopped", zap.String("driver", pipe.Driver()), zap.String("pipeline", pipe.Name()), zap.Time("start", start), zap.Int64("elapsed", time.Since(start).Milliseconds()))
close(d.redialCh)
return nil
}
Expand Down

0 comments on commit 016fccb

Please sign in to comment.