Project

General

Profile

« Previous | Next » 

Revision 00ca3fb1

Added by Ermal LUÇI over 14 years ago

Log the errors we know for not allowing a queue to be added.

View differences:

etc/inc/shaper.inc
418 418
		$q->ReadConfig($queue);
419 419
		$q->validate_input($queue, $input_errors);
420 420
		if (count($input_errors)) {
421
			log_error("SHAPER: could not create queue " . $q->GetQname() . " on interface {$interface} because: " . print_r($input_errors, true));
421 422
			return $q;
422 423
		}
423 424

  
......
1335 1336
		$q->ReadConfig($qname);
1336 1337
		$q->validate_input($qname, $input_errors);
1337 1338
		if (count($input_errors)) {
1339
			log_error("SHAPER: could not create queue " . $q->GetQname() . " on interface {$interface} because: " . print_r($input_errors, true));
1338 1340
			return $q;
1339 1341
		}
1340 1342

  
......
2038 2040
		$q->ReadConfig($qname);
2039 2041
                $q->validate_input($qname, $input_errors);
2040 2042
                if (count($input_errors)) {
2043
			log_error("SHAPER: could not create queue " . $q->GetQname() . " on interface {$interface} because: " . print_r($input_errors, true));
2041 2044
                        return $q;
2042 2045
                }
2043 2046
                switch ($q->GetBwscale()) {
......
2813 2816
		$q->SetParent(&$this);
2814 2817
		$q->ReadConfig($queue);
2815 2818
		$q->validate_input($queue, $input_errors);
2816
		if (count($input_errors))
2819
		if (count($input_errors)) {
2820
			log_error("SHAPER: could not create queue " . $q->GetQname() . " on interface {$interface} because: " . print_r($input_errors, true));
2817 2821
			return $q;
2822
		}
2818 2823
		$this->subqueues[$q->GetQname()] = &$q;
2819 2824
            
2820 2825
		return $q;

Also available in: Unified diff