aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2022-06-12 21:02:57 +0200
committerJonas Smedegaard <dr@jones.dk>2022-06-12 21:02:57 +0200
commitaaea94099b4add6c5e4a719b0f97dc005a84cb22 (patch)
treeccf97fc536e4f239bda04fd0a85cd94907b77483 /bin
parent7aaf5f90900cf52926ddf92c41e8c72e27840500 (diff)
log graph rendering
Diffstat (limited to 'bin')
-rwxr-xr-xbin/feature-check.pl4
1 files changed, 4 insertions, 0 deletions
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 );