Fix for iOS6

Clean some log code