* John Gordon (Fri, 8 Jul 2011 20:23:52 +0000 (UTC))
> I prefer this usage:
> 
>   logger.error('%s could not be stored - %s' % \
>     (self.preset_file, sys.exc_info()[1]))

The syntax for formatting logging messages according to the 
documentation is:

Logger.error(msg, *args) 

NOT

Logger.error(msg % (*args)) 

Thorsten
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to