Skip to content

Commit

Permalink
fix reporter being disabled in wrong configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
arriven committed Apr 22, 2022
1 parent 9f74282 commit 651ae79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/job/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ func (r *Runner) Run(ctx context.Context, logger *zap.Logger) {
if rawConfig.Encrypted {
logger.Info("config is encrypted, disabling logs")

reporter = metrics.NewReporter(r.globalJobsCfg.ClientID)
reporter = nil
cancel = r.runJobs(ctx, cfg, reporter, zap.NewNop())
} else {
reporter = nil
reporter = metrics.NewReporter(r.globalJobsCfg.ClientID)
cancel = r.runJobs(ctx, cfg, reporter, logger)
}
} else {
Expand Down

0 comments on commit 651ae79

Please sign in to comment.