improve code coverage for log