diff options
| author | Michael Larson <slioch@eng-140.vyatta.com> | 2008-01-31 14:50:57 -0800 |
|---|---|---|
| committer | Michael Larson <slioch@eng-140.vyatta.com> | 2008-01-31 14:50:57 -0800 |
| commit | 1b4349fce41b93bc5965c39d1a9a33279a3ddfbb (patch) | |
| tree | 39b88d1fa5443e2ba1feb0c26e6ba8c0b65aba8e /src/lboutput.cc | |
| parent | 07e2dbf1d5a98860333aefa989370305467c2254 (diff) | |
| download | vyatta-wanloadbalance-1b4349fce41b93bc5965c39d1a9a33279a3ddfbb.tar.gz vyatta-wanloadbalance-1b4349fce41b93bc5965c39d1a9a33279a3ddfbb.zip | |
moved most stdout messages to new debug output command. reworked (simplified) init script so that rules table is properly cleaned
up on exit of wlb. fixed a couple cli structural related issues.
Diffstat (limited to 'src/lboutput.cc')
| -rw-r--r-- | src/lboutput.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lboutput.cc b/src/lboutput.cc index e0ed18b..7434446 100644 --- a/src/lboutput.cc +++ b/src/lboutput.cc @@ -52,7 +52,9 @@ LBOutput::write(const LBData &lbdata) //dump out the application data LBData::LBRuleConstIter r_iter = lbdata._lb_rule_coll.begin(); while (r_iter != lbdata._lb_rule_coll.end()) { - cout << "squirt out results here." << endl; + if (_debug) { + cout << "squirt out results here." << endl; + } ++r_iter; } } |
