summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller/Wagenreihung.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-05 08:33:53 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-05 08:33:53 +0200
commitc8383c697ac9108b195696a5ca371e79d224225f (patch)
tree1e799fa158ba07ea264785f19635708855ac557c /lib/DBInfoscreen/Controller/Wagenreihung.pm
parent8bf1dd3575bf58f1a50b28747f12f65a26b5a281 (diff)
parent37c510b2d351ea0c1c50ecceec21452de89afebf (diff)
Merge branch 'master' of git.finalrewind.org:var/git_root/db-fakedisplay into master3.1.3
Diffstat (limited to 'lib/DBInfoscreen/Controller/Wagenreihung.pm')
-rw-r--r--lib/DBInfoscreen/Controller/Wagenreihung.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Controller/Wagenreihung.pm b/lib/DBInfoscreen/Controller/Wagenreihung.pm
index a87bb29..7b59227 100644
--- a/lib/DBInfoscreen/Controller/Wagenreihung.pm
+++ b/lib/DBInfoscreen/Controller/Wagenreihung.pm
@@ -25,6 +25,7 @@ sub get_wagenreihung_p {
if ( my $content = $cache->thaw($url) ) {
$promise->resolve($content);
+ $self->app->log->debug("GET $url (cached)");
return $promise;
}
@@ -33,6 +34,7 @@ sub get_wagenreihung_p {
->then(
sub {
my ($tx) = @_;
+ $self->app->log->debug("GET $url (OK)");
my $body = decode( 'utf-8', $tx->res->body );
my $json = JSON->new->decode($body);
@@ -42,6 +44,7 @@ sub get_wagenreihung_p {
)->catch(
sub {
my ($err) = @_;
+ $self->app->log->debug("GET $url (error: $err)");
$promise->reject($err);
}
)->wait;