summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-11-30 12:35:30 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-11-30 12:35:30 +0100
commite7c341a99b0bcedd2347a5dd250d79c653232495 (patch)
tree74431995d0d9f2d17734609a331eeaeecef4e71d /lib/Travel
parentaa1ff3da725ff69336cb243fa316a800c75aa0f3 (diff)
IRIS: only show cache miss debug output when devmode is enabled
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/IRIS.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm
index e76e1f9..3c82aa7 100644
--- a/lib/Travel/Status/DE/IRIS.pm
+++ b/lib/Travel/Status/DE/IRIS.pm
@@ -135,7 +135,10 @@ sub get_with_cache {
}
}
- say ' cache miss';
+ if ( $self->{developer_mode} ) {
+ say ' cache miss';
+ }
+
my $ua = $self->{user_agent};
my $res = $ua->get($url);