From: Stefan Schantl Date: Fri, 17 Aug 2018 06:49:06 +0000 (+0200) Subject: ids-functions.pl: Log correct error message if download fails X-Git-Tag: suricata-beta3~33^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88daf7eb3a9ba5ceb3df9f8197ea3cb5cfd4f30b;p=people%2Fstevee%2Fipfire-2.x.git ids-functions.pl: Log correct error message if download fails Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 761b39e78d..0e1f2876b0 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -164,8 +164,11 @@ sub downloadruleset { # Check if there was any error. unless ($response->is_success) { + # Obtain error. + my $error = $response->content; + # Log error message. - &_log_to_syslog("Unable to download the ruleset. $response->status_line"); + &_log_to_syslog("Unable to download the ruleset. \($error\)"); # Return "1" - false. return 1;