diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-04-05 21:21:27 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-04-05 21:21:27 +0200 |
commit | e5a6d1ea6c7debfe96d3be38721a7b0ce1717f99 (patch) | |
tree | 094571a43886f703a352d3eae78aa4bc0dbecb63 | |
parent | 5df5bbf1c98af7a3060ac360e8ad26e2cc775955 (diff) |
work: do not treat non-actionable backend errors as errors2.11.16
-rw-r--r-- | lib/Travelynx/Command/work.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index fbd70a6..2caad05 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -138,7 +138,7 @@ sub run { )->catch( sub { my ($err) = @_; - $self->app->log->error( + $self->app->log->debug( "work($uid) @ DBRIS $entry->{backend_name}: journey: $err" ); if ( $err =~ m{HTTP 429} ) { @@ -269,9 +269,10 @@ sub run { my ($err) = @_; $backend_issues += 1; if ( $err - =~ m{svcResL\[0\][.]err is (?:FAIL|PARAMETER)$} ) + =~ m{svcResL\[0\][.]err is (?:FAIL|PARAMETER)$} + or $err =~ m{timeout} ) { - # HAFAS do be weird. These are not actionable. + # These are not actionable. $self->app->log->debug( "work($uid) @ HAFAS $entry->{backend_name}: journey: $err" ); |