Fixes test_logger issue.