# HG changeset patch # User Matti Hamalainen # Date 1507300206 -10800 # Node ID ec97c29768e77461fb4a0c4b15bf9043c384cca2 # Parent a7249db002bddbd35a3e68892c8419a5e3aece41 fetch_weather: Improve some debug messages. diff -r a7249db002bd -r ec97c29768e7 fetch_weather.pl --- a/fetch_weather.pl Thu Sep 28 15:25:12 2017 +0300 +++ b/fetch_weather.pl Fri Oct 06 17:30:06 2017 +0300 @@ -513,7 +513,8 @@ if (scalar(@fmatches) != scalar(@fmitems)) { print STDERR "Not enough items in scalar line #".$nline." (". - scalar(@fmatches). " vs ".scalar(@fmitems)."): ".$dline."\n"; + scalar(@fmatches). " vs ".scalar(@fmitems)."): ".$dline."\n" + if (opt_get_int("debug") > 0); } else { @@ -538,7 +539,8 @@ } else { - print STDERR "Position and data line counts do not match.\n"; + print STDERR "Position and data line counts do not match ". + scalar(@position_lines)." <> ".scalar(@data_lines)."\n"; goto skip_it; } # XXX Hashify the array into lat/long keys