ids-functions.pl: Log correct error message if download fails

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2018-08-17 08:49:06 +02:00
parent 55658ee381
commit 88daf7eb3a

View File

@@ -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;