diff options
author | Ermal <eri@pfsense.org> | 2011-01-24 17:24:28 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-01-24 17:24:28 +0000 |
commit | 8633930d113a513c87f3ed63ae3623b54255ff46 (patch) | |
tree | d02d3f1b061b843ef602671b08995ecb944621c6 /etc/inc | |
parent | ef8fca71ea298db49c5f15307bfcd84e37479911 (diff) | |
download | pfsense-8633930d113a513c87f3ed63ae3623b54255ff46.zip pfsense-8633930d113a513c87f3ed63ae3623b54255ff46.tar.gz |
Actually send a notice even if no default queue could not be found. This might be serious in some cases.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/shaper.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 3dac2ce..bea2c04 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -31,6 +31,8 @@ /* XXX: needs some reducing on include. */ /* include all configuration functions. */ require_once("functions.inc"); +require_once("util.inc"); +require_once("notices.inc"); /* * I admit :) this is derived from xmplparse.inc StartElement() @@ -544,7 +546,9 @@ class altq_root_queue { } } if ($default == false) { - log_error("SHAPER: no default queue specified for interface ". $this->GetInterface() . ". The interface queue will be enforced as default."); + $error = "SHAPER: no default queue specified for interface ". $this->GetInterface() . ". The interface queue will be enforced as default."; + file_notice("Shaper", $error, "Error occurred", ""); + unset($error); return "\n"; } $frule .= $rules; |