Skip to content

Commit

Permalink
better colors again on debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ollyg committed Apr 19, 2024
1 parent 8646260 commit 2812888
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/App/Netdisco/Backend/Job.pm
Expand Up @@ -196,7 +196,7 @@ sub enter_phase {
my ($job, $phase) = @_;

$job->_current_phase( $phase );
debug BRIGHT_YELLOW, '=> ', GREY10, 'running workers for phase: ', BRIGHT_CYAN, '==== ', uc($phase), ' ====', RESET;
debug BRIGHT_CYAN, "//// ", uc($phase), ' \\\\\\\\ ', GREY10, 'phase', RESET;

$job->_last_namespace( undef );
$job->_last_priority( undef );
Expand All @@ -215,7 +215,7 @@ sub add_status {
$status->phase( $job->_current_phase || '' );
push @{ $job->_statuslist }, $status;
if ($status->log) {
debug BRIGHT_GREEN, '(', $status->status, ') ', GREEN, $status->log, RESET;
debug GREEN, "\N{LEFTWARDS BLACK ARROW} ", BRIGHT_GREEN, '(', $status->status, ') ', GREEN, $status->log, RESET;
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/App/Netdisco/Worker/Plugin.pm
Expand Up @@ -37,7 +37,7 @@ register 'register_worker' => sub {
my $job = shift or die 'missing job param';
# use DDP; p $workerconf;

debug YELLOW, '-> ', GREY10, 'run worker ', $workerconf->{package},
debug YELLOW, "\N{RIGHTWARDS BLACK ARROW} worker ", GREY10, $workerconf->{package},
GREY10, ' p', MAGENTA, $workerconf->{priority},
($workerconf->{title} ? (GREY10, ' "', BRIGHT_BLUE, $workerconf->{title}, GREY10, '"') : ''),
RESET;
Expand Down

0 comments on commit 2812888

Please sign in to comment.