From 4ddba488478f131bb7b5695e10656ae9ade0e978 Mon Sep 17 00:00:00 2001 From: Daniel Asher Resnick Date: Tue, 2 Jan 2024 10:09:32 -0600 Subject: [PATCH] Fix logging order and message typo --- wiki-map.pl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/wiki-map.pl b/wiki-map.pl index ed04f0f..bb2b9c0 100644 --- a/wiki-map.pl +++ b/wiki-map.pl @@ -253,6 +253,13 @@ foreach my $page (values %{$tile_query_results->{query}{pages}}) } } + + +say STDERR "Continuing Location processing"; +$_->() for @location_continuations; + + + my (%path_specs); say STDERR "Getting Path pages"; my $path_query_results = $mw->api @@ -323,13 +330,6 @@ foreach my $page (values %{$path_tile_query_results->{query}{pages}}) } - - -say STDERR "Continuing Location processing"; -$_->() for @location_continuations; - - - say STDERR "Getting Site pages"; my $site_query_results = $mw->api ( { @@ -407,7 +407,7 @@ if($regiondir) } } - say STDERR "Rendering Region's $region grid"; + say STDERR "Rendering Region $region\'s grid"; open (my $region_fh, "> $region.$extension") or croak "Couldn't open $region.extension for writing: $!"; say $region_fh ($html_document ? wrap_in_html($region_grid) : $region_grid->render); @@ -416,7 +416,7 @@ if($regiondir) # Location grids need to import images while(my ($location_name, $location_grid) = each %location_grids) { - say STDERR "Rendering Location's $location_name grid"; + say STDERR "Rendering Location $location_name\'s grid"; open (my $location_fh, "> $location_name.$extension") or croak "Couldn't open $location_name.extension for writing: $!"; say $location_fh ($html_document ? wrap_in_html($location_grid) : $location_grid->render);