'File::Tree::Snapshot' => 0,
'Object::Remote' => 0,
'JSON::Diffable' => 0,
+ 'Log::Contextual', => 0,
);
# have to do this since old EUMM dev releases miss the eval $VERSION line
use System::Introspector::State;
use File::Tree::Snapshot;
use System::Introspector::Config;
+use System::Introspector::Logger qw( :log );
+
+log_debug { "$0 started executing" };
GetOptions(
'c|config=s' => \my $config_file,
die "Requires --all or --group option\n"
unless $update_all or @update_groups;
+log_trace { "Completed parsing command line options" };
+
+$config_file = "$storage_dir/main.conf" unless defined $config_file;
+
+log_debug { "Configuration file: '$config_file'"; };
+
my $config = System::Introspector::Config->new(
- config_file => (defined($config_file)
- ? $config_file
- : "$storage_dir/main.conf"),
+ config_file => $config_file,
);
+log_trace { "Completed building configuration" };
+
$config->has_group($_) or die "Unknown group '$_'\n"
for @update_groups;
root => $storage_dir,
);
+log_trace { "Completed building introspector state" };
+
+log_info { "Ready to start gathering results" };
$state->gather(@update_groups);
+log_info { "Completed gathering results" };
__END__