Il 12/05/2013 08:08, Thomas Watteyne ha scritto:
>
> In software/openvisualizer/openLbr/openLbr.py:
>
> > @@ -196,77 +196,89 @@ def _meshToV6_notif(self,sender,signal,data):
> >
> >          '''
> >          try:
> > -           ipv6dic={}
> > -           #build lowpan dictionary from the data
> > -           ipv6dic = self.lowpan_to_ipv6(data)
> > -           success = True
> > -           dispatchSignal = None
> > +            # log
> > +            # turn dictionnary of fields into raw bytes
> > +            #lowpan_bytes     = self.reassemble_lowpan(data)
> > +            #log.debug(self._format_lowpan(data,lowpan_bytes))
> > +
> > +            ipv6dic = {}
> > +            #build lowpan dictionary from 6LoWPAN dictionnary
> > +            ipv6dic = self.lowpan_to_ipv6(data)
> > +            print ipv6dic # my print
>
> We try to avoid printing anything directly to the terminal, but rather 
> logging into a file using e.g. log.debug(). Would you agree to replace 
> this print statement by a log.debug() statement? Or may you're trying 
> to do something different?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/openwsn-berkeley/openwsn-sw/pull/5/files#r4184922>.
>
I've used that print in order to print packet before parsing, because 
whenever the packet has a wrong format or is missing of anything, the 
parsing raise an exception...