fixed Logger side effect that broke the tests