Factor out _log_override function
Style nitpicking