added extra logging when exception occurs calling API