aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2013-05-31 22:26:17 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2013-05-31 22:26:17 -0400
commitfc01f63f1d6cd4bc28b7d0b6604ce06e380306eb (patch)
tree8d42446a0100dc4843d7327a55486f281509b9ae /config
parentdd0f9ed5d547c72ca78881b99785d7ac209afc1e (diff)
downloadpfsense-packages-fc01f63f1d6cd4bc28b7d0b6604ce06e380306eb.tar.gz
pfsense-packages-fc01f63f1d6cd4bc28b7d0b6604ce06e380306eb.tar.bz2
pfsense-packages-fc01f63f1d6cd4bc28b7d0b6604ce06e380306eb.zip
Tweak error message logging a bit for completeness.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/snort/snort_check_for_rule_updates.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index 3e3dd658..f08ebc18 100755
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -122,6 +122,8 @@ function snort_download_file_url($url, $file_out) {
$rc = curl_exec($ch);
if ($rc === true)
break;
+ log_error(gettext("[Snort] Rules download error: " . curl_error($ch)));
+ log_error(gettext("[Snort] Will retry in 15 seconds..."));
sleep(15);
}
if ($rc === false)
@@ -726,6 +728,10 @@ if ($snortdownload == 'on' || $emergingthreats == 'on' || $snortcommunityrules =
log_error(gettext("[Snort] Snort has restarted with your new set of rules..."));
error_log(gettext("\tSnort has restarted with your new set of rules.\n"), 3, $snort_rules_upd_log);
}
+ else {
+ if ($pkg_interface <> "console")
+ update_output_window(gettext("The rules update task is complete..."));
+ }
}
if ($pkg_interface <> "console")