log codes when exception thrown from Locale.parse