alshabib

fixed annoying ofchannel log statements

Change-Id: Ibfc64db79b9fd28f8f26b7fc29061328d8b21739
...@@ -167,11 +167,11 @@ class OFChannelHandler extends IdleStateAwareChannelHandler { ...@@ -167,11 +167,11 @@ class OFChannelHandler extends IdleStateAwareChannelHandler {
167 // TODO We could check for the optional bitmap, but for now 167 // TODO We could check for the optional bitmap, but for now
168 // we are just checking the version number. 168 // we are just checking the version number.
169 if (m.getVersion() == OFVersion.OF_13) { 169 if (m.getVersion() == OFVersion.OF_13) {
170 - log.info("Received {} Hello from {}", m.getVersion(), 170 + log.debug("Received {} Hello from {}", m.getVersion(),
171 h.channel.getRemoteAddress()); 171 h.channel.getRemoteAddress());
172 h.ofVersion = OFVersion.OF_13; 172 h.ofVersion = OFVersion.OF_13;
173 } else if (m.getVersion() == OFVersion.OF_10) { 173 } else if (m.getVersion() == OFVersion.OF_10) {
174 - log.info("Received {} Hello from {} - switching to OF " 174 + log.debug("Received {} Hello from {} - switching to OF "
175 + "version 1.0", m.getVersion(), 175 + "version 1.0", m.getVersion(),
176 h.channel.getRemoteAddress()); 176 h.channel.getRemoteAddress());
177 h.ofVersion = OFVersion.OF_10; 177 h.ofVersion = OFVersion.OF_10;
...@@ -222,7 +222,7 @@ class OFChannelHandler extends IdleStateAwareChannelHandler { ...@@ -222,7 +222,7 @@ class OFChannelHandler extends IdleStateAwareChannelHandler {
222 void processOFFeaturesReply(OFChannelHandler h, OFFeaturesReply m) 222 void processOFFeaturesReply(OFChannelHandler h, OFFeaturesReply m)
223 throws IOException { 223 throws IOException {
224 h.thisdpid = m.getDatapathId().getLong(); 224 h.thisdpid = m.getDatapathId().getLong();
225 - log.info("Received features reply for switch at {} with dpid {}", 225 + log.debug("Received features reply for switch at {} with dpid {}",
226 h.getSwitchInfoString(), h.thisdpid); 226 h.getSwitchInfoString(), h.thisdpid);
227 227
228 h.featuresReply = m; //temp store 228 h.featuresReply = m; //temp store
...@@ -409,7 +409,7 @@ class OFChannelHandler extends IdleStateAwareChannelHandler { ...@@ -409,7 +409,7 @@ class OFChannelHandler extends IdleStateAwareChannelHandler {
409 409
410 410
411 411
412 - log.info("Switch {} bound to class {}, description {}", 412 + log.debug("Switch {} bound to class {}, description {}",
413 new Object[] {h.sw, h.sw.getClass(), drep }); 413 new Object[] {h.sw, h.sw.getClass(), drep });
414 //Put switch in EQUAL mode until we hear back from the global registry 414 //Put switch in EQUAL mode until we hear back from the global registry
415 //log.debug("Setting new switch {} to EQUAL and sending Role request", 415 //log.debug("Setting new switch {} to EQUAL and sending Role request",
...@@ -651,7 +651,7 @@ class OFChannelHandler extends IdleStateAwareChannelHandler { ...@@ -651,7 +651,7 @@ class OFChannelHandler extends IdleStateAwareChannelHandler {
651 * @param error The error message 651 * @param error The error message
652 */ 652 */
653 protected void logError(OFChannelHandler h, OFErrorMsg error) { 653 protected void logError(OFChannelHandler h, OFErrorMsg error) {
654 - log.info("{} from switch {} in state {}", 654 + log.error("{} from switch {} in state {}",
655 new Object[] { 655 new Object[] {
656 error, 656 error,
657 h.getSwitchInfoString(), 657 h.getSwitchInfoString(),
...@@ -1050,7 +1050,7 @@ class OFChannelHandler extends IdleStateAwareChannelHandler { ...@@ -1050,7 +1050,7 @@ class OFChannelHandler extends IdleStateAwareChannelHandler {
1050 throws Exception { 1050 throws Exception {
1051 OFFactory factory = (ofVersion == OFVersion.OF_13) ? factory13 : factory10; 1051 OFFactory factory = (ofVersion == OFVersion.OF_13) ? factory13 : factory10;
1052 OFMessage m = factory.buildEchoRequest().build(); 1052 OFMessage m = factory.buildEchoRequest().build();
1053 - log.info("Sending Echo Request on idle channel: {}", 1053 + log.debug("Sending Echo Request on idle channel: {}",
1054 e.getChannel().getPipeline().getLast().toString()); 1054 e.getChannel().getPipeline().getLast().toString());
1055 e.getChannel().write(Collections.singletonList(m)); 1055 e.getChannel().write(Collections.singletonList(m));
1056 // XXX S some problems here -- echo request has no transaction id, and 1056 // XXX S some problems here -- echo request has no transaction id, and
......