On Tue, 2 Oct 2012 16:01:00 +0900 Isaku Yamahata <[email protected]> wrote:
> Printing raw string causes terminal in unexpected mode. > > Signed-off-by: Isaku Yamahata <[email protected]> > --- > ryu/controller/ofp_handler.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/ryu/controller/ofp_handler.py b/ryu/controller/ofp_handler.py > index 6832e51..149d4dc 100644 > --- a/ryu/controller/ofp_handler.py > +++ b/ryu/controller/ofp_handler.py > @@ -16,6 +16,7 @@ > > import logging > > +from ryu import utils > from ryu.base import app_manager > from ryu.controller import dispatcher > from ryu.controller import ofp_event > @@ -98,7 +99,7 @@ class OFPHandler(app_manager.RyuApp): > [HANDSHAKE_DISPATCHER, CONFIG_DISPATCHER, MAIN_DISPATCHER]) > def echo_request_handler(self, ev): > msg = ev.msg > - # LOG.debug('echo request msg %s %s', msg, str(msg.data)) > + # LOG.debug('echo request msg %s %s', msg, utils.hex_array(msg.data)) Let's remove the above comment. Or comment out it. I prefer the former. Modifying the comment code doesn't make sense. ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
