From aaea94099b4add6c5e4a719b0f97dc005a84cb22 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 12 Jun 2022 21:02:57 +0200 Subject: log graph rendering --- bin/feature-check.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/feature-check.pl b/bin/feature-check.pl index ea84812..4990c0c 100755 --- a/bin/feature-check.pl +++ b/bin/feature-check.pl @@ -139,6 +139,7 @@ my $threshold = USABLE; $log->info("acceptance threshold: $MATURITY[$threshold]"); my $graph = Graph::Easy::Parser->from_text('graph { flow: east; }'); +$graph->catch_messages(1); my $root = 'features'; my $featureref = path("$BASEDIR")->visit( \&feature ); @@ -184,6 +185,9 @@ say $_ for $table->render; print $graph->as_boxart(); +$log->error($_) for $graph->errors(); +$log->warn($_) for $graph->warnings(); + sub feature { my ($path, $state) = @_; my ( $feature, $docs, $maturity ); -- cgit v1.2.3