bitpit icon indicating copy to clipboard operation
bitpit copied to clipboard

voloctree: reduce visibitiy of PABLO messages

Open andrea-iob opened this issue 2 years ago • 2 comments

In release mode, VolOctree patch will display PABLO messages only when their severity is WARNING or higher.

To achieve this I had to rework a bit the logger: loggers that were sharing the same buffer were sharing also the visibility settings, but this was not the intended behaviour. Other than fixing this problem, the reworked logger should be faster.

andrea-iob avatar Jun 25 '22 07:06 andrea-iob

I had to make some changes to make the code work with GCC 12 (and hopefully clang, tests will confirm this). Now, stream operators for bitpit classes are declared inside the bitpit namespace. Since at least one of the arguments passed to those stream operators are in the bitpit namespace, the compiler is still able to pick the correct overload thanks to ADL (Argument-dependent lookup);

andrea-iob avatar Jun 25 '22 18:06 andrea-iob

Can you rebase on master, please? Thanks!

marcocisternino avatar Aug 24 '22 09:08 marcocisternino