deactivate logger in unittest