summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/work.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-10-01 19:52:11 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-10-01 19:52:11 +0200
commit8d53f7f5c8c883bd985fa4b7b02e8a6238cf2708 (patch)
tree631b152b369e9263f4e23d0b3f65848ce6b70464 /lib/Travelynx/Command/work.pm
parent64c9b5b160d392793b004a618635bd20d1653b2d (diff)
log error when trip_id is missing
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-rw-r--r--lib/Travelynx/Command/work.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index 5a79b10..f38f0e5 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -265,8 +265,12 @@ sub run {
my $trip_id = $candidate->{journey_data}{trip_id};
if ( not $trip_id ) {
$self->app->log->debug("... trip_id is missing");
-
- # TODO log traewelling error
+ $self->app->traewelling->log(
+ uid => $candidate->{uid},
+ message =>
+"Fehler bei $opt{train_type} $opt{train_no}: Keine trip_id vorhanden",
+ is_error => 1
+ );
return;
}
if ( $candidate->{data}{latest_push_ts}