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

work: Some HAFAS errors are not actionable and should not be logged as errors

parent 2391980d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -83,8 +83,15 @@ sub run {
			)->catch(
				sub {
					my ($err) = @_;
					if ( $err =~ m{svcResL\[0\][.]err is (?:FAIL|PARAMETER)$} )
					{
						# HAFAS do be weird. These are not actionable.
						$self->app->log->debug("work($uid)/journey: $err");
					}
					else {
						$self->app->log->error("work($uid)/journey: $err");
					}
				}
			)->wait;

			if (    $arr