From 2c5bedfdf86a50a8f67cdd162112fcc0f2180c03 Mon Sep 17 00:00:00 2001 From: waynieack Date: Mon, 20 Feb 2017 12:41:09 -0600 Subject: [PATCH] Made the Net::Address::Ethernet error message log only when the alexa module is enabled. --- lib/AlexaBridge.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/AlexaBridge.pm b/lib/AlexaBridge.pm index 2e0012b25..ebf44ab69 100644 --- a/lib/AlexaBridge.pm +++ b/lib/AlexaBridge.pm @@ -908,7 +908,8 @@ sub _GetChunk { sub DiscoverAddy { eval "use Net::Address::Ethernet qw( :all )"; if ($@) { - print "\n [Alexa] Error: Net::Address::Ethernet is not installed... Please install it or define the local IP and mac in alexaHttpIp/alexaMac\n\n"; + print "\n [Alexa] Error: Net::Address::Ethernet is not installed... Please install it or define the local IP and mac in alexaHttpIp/alexaMac\n\n" + if ($::config_parms{'alexa_enable'}); return ('127.0.0.1','9aa645cc40aa'); # return localhost as we dont know the real address } my @a = get_addresses(@_);