summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-04-19 09:51:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-04-19 09:51:22 +0200
commit61f8adb24919b19e48b4d74717e6b4a8fbd5f7b5 (patch)
tree9b1355fb36b0e67ab7a96363ed284c502804d321 /lib/Travel/Status/DE/IRIS.pm
parent683a1fb700d5ba86a12acf1427c05de1b5008b4a (diff)
IRIS: Add more debug output (indicate which URLs were requested)
Diffstat (limited to 'lib/Travel/Status/DE/IRIS.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm
index 34f7fc4..eb4ae10 100644
--- a/lib/Travel/Status/DE/IRIS.pm
+++ b/lib/Travel/Status/DE/IRIS.pm
@@ -173,6 +173,8 @@ sub get_timetable {
my $res = $ua->get(
$dt->strftime( $self->{iris_base} . "/plan/${eva}/%y%m%d/%H" ) );
+ #say 'GET ' . $dt->strftime( $self->{iris_base} . "/plan/${eva}/%y%m%d/%H" );
+
if ( $res->is_error ) {
$self->{warnstr} = 'Failed to fetch a schedule part: Server returned '
. $res->status_line;
@@ -199,6 +201,8 @@ sub get_realtime {
my $eva = $self->{nodes}{station}->getAttribute('eva');
my $res = $self->{user_agent}->get( $self->{iris_base} . "/fchg/${eva}" );
+ #say 'GET ' . $self->{iris_base} . "/fchg/${eva}";
+
if ( $res->is_error ) {
$self->{warnstr} = 'Failed to fetch realtime data: Server returned '
. $res->status_line;