Skip to content

Commit

Permalink
prober: log errors returned by k6-backed probes as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
roobre committed Jun 18, 2024
1 parent 0355d03 commit e8dc2a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/prober/multihttp/multihttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (p Prober) Name() string {
func (p Prober) Probe(ctx context.Context, target string, registry *prometheus.Registry, logger logger.Logger) bool {
success, err := p.processor.Run(ctx, registry, logger, p.logger)
if err != nil {
p.logger.Warn().Err(err).Msg("running probe")
p.logger.Error().Err(err).Msg("running probe")
return false
}

Expand Down
2 changes: 1 addition & 1 deletion internal/prober/scripted/scripted.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (p Prober) Name() string {
func (p Prober) Probe(ctx context.Context, target string, registry *prometheus.Registry, logger logger.Logger) bool {
success, err := p.processor.Run(ctx, registry, logger, p.logger)
if err != nil {
p.logger.Warn().Err(err).Msg("running probe")
p.logger.Error().Err(err).Msg("running probe")
return false
}

Expand Down

0 comments on commit e8dc2a5

Please sign in to comment.