Skip to content

Commit

Permalink
no default title in debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
ollyg committed Apr 19, 2024
1 parent 02a73aa commit 8646260
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/App/Netdisco/Worker/Plugin.pm
Expand Up @@ -27,7 +27,7 @@ register 'register_worker' => sub {
return error "failed to parse action in '$package'"
unless $workerconf->{action};

$workerconf->{title} ||= '-';
$workerconf->{title} ||= '';
$workerconf->{phase} ||= 'user';
$workerconf->{namespace} ||= '_base_';
$workerconf->{priority} ||= (exists $workerconf->{driver}
Expand All @@ -38,8 +38,9 @@ register 'register_worker' => sub {
# use DDP; p $workerconf;

debug YELLOW, '-> ', GREY10, 'run worker ', $workerconf->{package},
GREY10, ' p', MAGENTA, $workerconf->{priority}, GREY10, ' "',
BRIGHT_BLUE, $workerconf->{title}, GREY10, '"', RESET;
GREY10, ' p', MAGENTA, $workerconf->{priority},
($workerconf->{title} ? (GREY10, ' "', BRIGHT_BLUE, $workerconf->{title}, GREY10, '"') : ''),
RESET;

if ($job->is_cancelled) {
return $job->add_status( Status->info('skip: job is cancelled') );
Expand Down

0 comments on commit 8646260

Please sign in to comment.