Apr-19-2022, 07:06 AM
Just a hunch but you could perhaps use
self.log.removeHandler(...)
instead of «closing» the logger. Read about Logger objects API here.