diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2013-05-31 22:26:17 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2013-05-31 22:26:17 -0400 |
commit | fc01f63f1d6cd4bc28b7d0b6604ce06e380306eb (patch) | |
tree | 8d42446a0100dc4843d7327a55486f281509b9ae | |
parent | dd0f9ed5d547c72ca78881b99785d7ac209afc1e (diff) | |
download | pfsense-packages-fc01f63f1d6cd4bc28b7d0b6604ce06e380306eb.tar.gz pfsense-packages-fc01f63f1d6cd4bc28b7d0b6604ce06e380306eb.tar.bz2 pfsense-packages-fc01f63f1d6cd4bc28b7d0b6604ce06e380306eb.zip |
Tweak error message logging a bit for completeness.
-rwxr-xr-x | config/snort/snort_check_for_rule_updates.php | 6 |
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") |