Author adamist521
Recipients adamist521, vinay.sajip
Date 2020-07-29.05:57:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1596002244.65.0.208232248615.issue41433@roundup.psfhosted.org>
In-reply-to
Content
BufferingHandler

I expected function flush of BufferingHandler called once but it is called twice. 
This is due to that shutdown calls flush before close function which calls flush function inside.
(Faced this issue on my custom implementation of flush function.)

Seems that there is no need of calling flush inside BufferingHandler.

Following is the link to the code of function shutdown and Buffering Handler
https://github.com/python/cpython/blob/0124f2b5e0f88ee7f5d40fca96dbf087cbe4764b/Lib/logging/handlers.py#L1286
https://github.com/python/cpython/blob/a74eea238f5baba15797e2e8b570d153bc8690a7/Lib/logging/__init__.py#L2151

This issue could be also related.
https://bugs.python.org/issue26559
History
Date User Action Args
2020-07-29 05:57:24adamist521setrecipients: + adamist521, vinay.sajip
2020-07-29 05:57:24adamist521setmessageid: <1596002244.65.0.208232248615.issue41433@roundup.psfhosted.org>
2020-07-29 05:57:24adamist521linkissue41433 messages
2020-07-29 05:57:24adamist521create