Silencing logging during tests.