diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-10-08 20:05:31 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-10-08 20:05:31 +0200 |
commit | 4575beb6ff648954dbd479fced38b856b7e73c34 (patch) | |
tree | 41272060978244b695eb64f353eacf5b81c673d7 /lib/Travelynx/Helper | |
parent | 3ca18af9b6092b60a00d6fc8fcc9e08f4a01d253 (diff) |
HAFAS: Turn backend warnings into info messages
We can't do anything about them, after all
Diffstat (limited to 'lib/Travelynx/Helper')
-rw-r--r-- | lib/Travelynx/Helper/HAFAS.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm index be13bd7..b763960 100644 --- a/lib/Travelynx/Helper/HAFAS.pm +++ b/lib/Travelynx/Helper/HAFAS.pm @@ -88,7 +88,7 @@ sub get_polyline_p { if ( $iris_stations ne $hafas_stations and index( $hafas_stations, $iris_stations ) == -1 ) { - $self->{log}->warn( 'Ignoring polyline for ' + $self->{log}->info( 'Ignoring polyline for ' . $train->line . ": IRIS route does not agree with HAFAS route: $iris_stations != $hafas_stations" ); @@ -192,7 +192,7 @@ sub get_rest_p { )->catch( sub { my ($err) = @_; - $self->{log}->warn("hafas->get_rest_p($url): $err"); + $self->{log}->info("hafas->get_rest_p($url): $err"); $promise->reject("hafas->get_rest_p($url): $err"); return; } @@ -236,7 +236,7 @@ sub get_json_p { )->catch( sub { my ($err) = @_; - $self->{log}->warn("hafas->get_json_p($url): $err"); + $self->{log}->info("hafas->get_json_p($url): $err"); $promise->reject("hafas->get_json_p($url): $err"); return; } @@ -282,7 +282,7 @@ sub get_xml_p { $body =~ s{P&R}{P&R}; eval { $tree = XML::LibXML->load_xml( string => $body ) }; if ($@) { - $self->{log}->warn("load_xml($url): $@"); + $self->{log}->info("load_xml($url): $@"); $cache->freeze( $url, $traininfo ); $promise->resolve($traininfo); return; @@ -319,7 +319,7 @@ sub get_xml_p { )->catch( sub { my ($err) = @_; - $self->{log}->warn("hafas->get_xml_p($url): $err"); + $self->{log}->info("hafas->get_xml_p($url): $err"); $promise->reject("hafas->get_xml_p($url): $err"); return; } |