traewelling: log an error if pull sync fails

This commit is contained in:
Daniel Friesel 2022-02-16 20:39:00 +01:00
parent faf8952b87
commit 8f906da9c2
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -292,6 +292,12 @@ sub run {
)->catch( )->catch(
sub { sub {
my ($err) = @_; 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"); $self->app->log->debug("Error $err");
} }
)->wait; )->wait;