Close PR 50861 where enabling and disabling of buffered logs can cause a segfault. Patch by: Torsten Förtsch <torsten.foertsch@gmx.net>