diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-11-30 12:35:30 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-11-30 12:35:30 +0100 |
commit | e7c341a99b0bcedd2347a5dd250d79c653232495 (patch) | |
tree | 74431995d0d9f2d17734609a331eeaeecef4e71d /lib/Travel | |
parent | aa1ff3da725ff69336cb243fa316a800c75aa0f3 (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.pm | 5 |
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); |