work: Some HAFAS errors are not actionable and should not be logged as errors
This commit is contained in:
parent
2391980de5
commit
a474981f6a
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue