On Mon, Mar 26, 2012 at 14:59, Sascha Silbe <si...@activitycentral.com> wrote:
> The first argument to the log.<level> family of functions is a format
> string. If you wish to log the value of some variable, you should use
> %s or %r in the format string and pass the variable as second+ parameter:
>
>                log.debug('event=%r', event)

Documentation:

 * http://wiki.sugarlabs.org/go/Development_Team/Code_guidelines#Miscellaneous

-- 
Kaufmann Manuel
Blog: http://humitos.wordpress.com/
Porfolio: http://fotos.mkaufmann.com.ar/
PyAr: http://www.python.com.ar/
_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to