Skip to content

Commit

Permalink
work: Some HAFAS errors are not actionable and should not be logged a…
Browse files Browse the repository at this point in the history
…s errors
  • Loading branch information
derf committed Jan 11, 2024
1 parent 2391980 commit a474981
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/Travelynx/Command/work.pm
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,14 @@ sub run {
)->catch(
sub {
my ($err) = @_;
$self->app->log->error("work($uid)/journey: $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;

Expand Down

0 comments on commit a474981

Please sign in to comment.