From 9666a2c6bcd66cab5be07e9458429405dd3cf889 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 8 Feb 2021 18:08:19 +0100 Subject: [PATCH] Do not warn on HAFAS "extra content at the end" (that's just an in-band 404) --- lib/Travelynx.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 882aab6..f028909 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1228,7 +1228,9 @@ sub startup { )->catch( sub { my ($err) = @_; - if ( $err eq 'trainlink not found' ) { + if ( $err + =~ m{trainlink not found|extra content at the end}i ) + { $self->app->log->debug("add_route_timestamps: $err"); } else {