[Tutor] Logging with proper format

R. Alan Monroe amonroe at columbus.rr.com
Sun Oct 7 21:55:27 CEST 2007


>         logger.info("Checked %s records in %s seconds, yielding an average of \
>             %s seconds per record." % (len(self.data), duration, avgquery) )
 ^^^^^^^^^^^^^

Remove these spaces. It makes the source code look weird, but the
output will be correct.

Alan



More information about the Tutor mailing list