Fixes a static analyzer warning about unused variables for disabled logging

I have fixed the issues with non-ARC settings. Let me know me know if this works for you. 

See #42