Remove unnecessary IF check in _log