Add logging to the places where we set languages