Skip to content

Commit

Permalink
Merge pull request #670 from waynieack/AlexaBridge.pm
Browse files Browse the repository at this point in the history
Made the Net::Address::Ethernet error message log only when the alexa module is enabled.
  • Loading branch information
hplato authored Feb 20, 2017
2 parents e21c2e6 + 2c5bedf commit eaf4da8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/AlexaBridge.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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(@_);
Expand Down

0 comments on commit eaf4da8

Please sign in to comment.