From e7c341a99b0bcedd2347a5dd250d79c653232495 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 30 Nov 2015 12:35:30 +0100 Subject: IRIS: only show cache miss debug output when devmode is enabled --- lib/Travel/Status/DE/IRIS.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3