Page MenuHomePhabricator

Doubled Logging output in combination with the Micro Services auto load feature
Closed, InvalidPublic

Description

In the method mbilog::DistributeToBackends() is a check whether there is already a backend or not. If not a dummy backend is created (possible memory leak?). This code is always executed if the auto load feature of the Micro Services are used.

Later on if another backend is registered via mitk::LoggingBackend::Register() (e.g. for file output) the console output is duplicated foreach log message.

Event Timeline

This seems to work fine, there is code that unregisters the "dummy backend" with the next log message.

kislinsk changed the task status from Invalid to Spite.Jun 27 2018, 1:30 PM
kislinsk added a project: Bulk Edit.
kislinsk changed the task status from Spite to Invalid.Jun 27 2018, 1:36 PM
kislinsk removed a project: Bulk Edit.