diff options
Diffstat (limited to 'lib/DBInfoscreen/Helper')
-rw-r--r-- | lib/DBInfoscreen/Helper/HAFAS.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm index 5b02e9e..fd688db 100644 --- a/lib/DBInfoscreen/Helper/HAFAS.pm +++ b/lib/DBInfoscreen/Helper/HAFAS.pm @@ -1,4 +1,5 @@ package DBInfoscreen::Helper::HAFAS; + # Copyright (C) 2011-2020 Daniel Friesel # # SPDX-License-Identifier: BSD-2-Clause @@ -36,6 +37,8 @@ sub get_json_p { return $promise->resolve($content); } + $self->{log}->debug("get_json_p($url)"); + $self->{user_agent}->request_timeout(5)->get_p( $url => $self->{header} ) ->then( sub { @@ -85,6 +88,8 @@ sub get_xml_p { return $promise->resolve($content); } + $self->{log}->debug("get_xml_p($url)"); + $self->{user_agent}->request_timeout(5)->get_p( $url => $self->{header} ) ->then( sub { |