Unverified Commit e5a6d1ea authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

work: do not treat non-actionable backend errors as errors

parent 5df5bbf1
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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"
							);