Skip to content

Commit

Permalink
Precede unavailability error with "Unavailable: " to ease log grepping
Browse files Browse the repository at this point in the history
  • Loading branch information
asdil12 committed Jan 27, 2025
1 parent 2ff2afc commit 6462e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OpenQA/Worker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ sub init ($self) {
# a job while broken. The error is propagated to the web UIs.
$self->configure_cache_client;
$self->current_error($self->check_availability);
log_error $self->current_error if $self->current_error;
log_error 'Unavailable: ' . $self->current_error if $self->current_error;

# register error handler to stop the current job when a critical/unhandled error occurs
Mojo::IOLoop->singleton->reactor->on(
Expand Down

0 comments on commit 6462e94

Please sign in to comment.