From 8f906da9c29fdb63699fbfa4e82deba560b62ca4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 16 Feb 2022 20:39:00 +0100 Subject: [PATCH] traewelling: log an error if pull sync fails --- lib/Travelynx/Command/work.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index a1fb485..3f8bcd3 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -292,6 +292,12 @@ sub run { )->catch( sub { my ($err) = @_; + $self->app->traewelling->log( + uid => $account_data->{user_id}, + message => + "Fehler bei der Status-Abfrage von Träwelling: $err", + is_error => 1 + ); $self->app->log->debug("Error $err"); } )->wait;