summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/work.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-09-04 17:05:50 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-09-04 17:05:50 +0200
commit55451b78f40fe7230fa877a48ae5c2ac7a659069 (patch)
treef5e0b2050dfef0133f86fbb7c9ebede3f8d5cc42 /lib/Travelynx/Command/work.pm
parent11b28d23fe379e246f66fabd1f839684af5f97a8 (diff)
work: 'did not find $dep' is not actionable → change severity to debug
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-rw-r--r--lib/Travelynx/Command/work.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index ac4416d..71faa3a 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -55,8 +55,8 @@ sub run {
}
}
if ( not $found_dep ) {
- return Mojo::Promise->reject(
- "Did not find $dep within journey $train_id");
+ $self->app->log->debug("Did not find $dep within journey $train_id");
+ return;
}
if ( $found_dep->{rt_dep} ) {
@@ -122,7 +122,7 @@ sub run {
@{ $status->{results} };
if ( not $train ) {
- $self->app->log->info(
+ $self->app->log->debug(
"could not find train $train_id at $dep\n");
return;
}