mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 03:25:54 +02:00
ids-functions.pl: Log correct error message if download fails
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user