mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +00:00
HAFAS: Turn backend warnings into info messages
We can't do anything about them, after all
This commit is contained in:
parent
3ca18af9b6
commit
4575beb6ff
1 changed files with 5 additions and 5 deletions
|
@ -88,7 +88,7 @@ sub get_polyline_p {
|
||||||
if ( $iris_stations ne $hafas_stations
|
if ( $iris_stations ne $hafas_stations
|
||||||
and index( $hafas_stations, $iris_stations ) == -1 )
|
and index( $hafas_stations, $iris_stations ) == -1 )
|
||||||
{
|
{
|
||||||
$self->{log}->warn( 'Ignoring polyline for '
|
$self->{log}->info( 'Ignoring polyline for '
|
||||||
. $train->line
|
. $train->line
|
||||||
. ": IRIS route does not agree with HAFAS route: $iris_stations != $hafas_stations"
|
. ": IRIS route does not agree with HAFAS route: $iris_stations != $hafas_stations"
|
||||||
);
|
);
|
||||||
|
@ -192,7 +192,7 @@ sub get_rest_p {
|
||||||
)->catch(
|
)->catch(
|
||||||
sub {
|
sub {
|
||||||
my ($err) = @_;
|
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");
|
$promise->reject("hafas->get_rest_p($url): $err");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -236,7 +236,7 @@ sub get_json_p {
|
||||||
)->catch(
|
)->catch(
|
||||||
sub {
|
sub {
|
||||||
my ($err) = @_;
|
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");
|
$promise->reject("hafas->get_json_p($url): $err");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -282,7 +282,7 @@ sub get_xml_p {
|
||||||
$body =~ s{P&R}{P&R};
|
$body =~ s{P&R}{P&R};
|
||||||
eval { $tree = XML::LibXML->load_xml( string => $body ) };
|
eval { $tree = XML::LibXML->load_xml( string => $body ) };
|
||||||
if ($@) {
|
if ($@) {
|
||||||
$self->{log}->warn("load_xml($url): $@");
|
$self->{log}->info("load_xml($url): $@");
|
||||||
$cache->freeze( $url, $traininfo );
|
$cache->freeze( $url, $traininfo );
|
||||||
$promise->resolve($traininfo);
|
$promise->resolve($traininfo);
|
||||||
return;
|
return;
|
||||||
|
@ -319,7 +319,7 @@ sub get_xml_p {
|
||||||
)->catch(
|
)->catch(
|
||||||
sub {
|
sub {
|
||||||
my ($err) = @_;
|
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");
|
$promise->reject("hafas->get_xml_p($url): $err");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue