[bug] logging should flush each message

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Aug 29 10:09:10 BST 2011

On Wed, 24 Aug 2011 15:37:26 -0800, Dave Abrahams <dave at boostpro.com> wrote:
> In most cases, nothing is written to my offlineimap.log file until
> offlineimap actually exits.  That's not very useful.
> Also, offlineimap wipes the logfile for each run instead of appending.
> Not very useful either.

Yep, it uses a custom log file thingie. I have a minimal branch that
converts OfflineImap to use the standard "logging" facility that python
offers. Is anyone interested in the code I have? I haven't tested with
anything but the TTYUI ui so far, not sure how blinkenlights would
fare. I attach the patch to this mail for people wanting to try it out
(and see if it flushes properly etc).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110829/eca7504a/attachment-0001.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Convert-UI-to-use-the-logging-facility.patch
Type: text/x-diff
Size: 5814 bytes
Desc: Patch to use \"logging\" for logging text
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110829/eca7504a/attachment-0003.patch>

More information about the OfflineIMAP-project mailing list