Fix undefined local variable or method error in InfusionAPIError

`undefined local variable or method api_logger for #<InfusionAPIError: InfusionAPIError> (NameError)` occurs when a new `InfusionAPIError` is created. `api_logger` is not a method in `InfusionAPIError`.