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,8 +83,15 @@ sub run {
|
||||||
)->catch(
|
)->catch(
|
||||||
sub {
|
sub {
|
||||||
my ($err) = @_;
|
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");
|
$self->app->log->error("work($uid)/journey: $err");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
)->wait;
|
)->wait;
|
||||||
|
|
||||||
if ( $arr
|
if ( $arr
|
||||||
|
|
Loading…
Reference in a new issue