Fixes logging for non-arc builds