summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/work.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-11 18:37:12 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-11 18:37:12 +0100
commita474981f6a7cb3b67d84ed337ecf2521cd9ef000 (patch)
tree7960b555181299dcb86bf4debc41dc5259ad61ff /lib/Travelynx/Command/work.pm
parent2391980de5b599b6a8801b793c1f958df515ce32 (diff)
work: Some HAFAS errors are not actionable and should not be logged as errors2.5.10
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-rw-r--r--lib/Travelynx/Command/work.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index a02618b..10b1b69 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -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;