Add logging to get_user_data