- my @outputs;
- if (defined( $db_config->{output} )) {
- my $module = $db_config->{output}->{module} || $log->logdie("need module in output section of $database");
+ my @outputs = iterate_over( $db_config->{output}, sub {
+ $log->error("Database $database doesn't have any outputs defined. Do you want to remove it from configuration?" );
+ } );
+
+ my @output_modules;
+
+ foreach my $output ( @outputs ) {
+
+warn '## output = ',dump( $output );
+
+ my $module = $output->{module} || $log->logdie("need module in output section of $database");