Log the exception locally when the API cannot be reached if it's enabled
in the configuration