Closed valeriyo closed 3 years ago
Hi @valeriyo,
Thanks for the report, you're absolutely correct in these points. I've filed them internally (ch90774) to be addressed when we get the chance. We have logic elsewhere in the SDK for avoiding calls when the network is known to be unavailable, but apparently we missed handling that for this feature. We'll adapt that, as well as update the logging level for this message if a request fails when the network is not known to be unavailable.
Thanks! @gwhelanLD
Thanks again for pointing this issue out, it should now be fixed in the 3.0.0 release. The SDK will avoid network calls for diagnostics when the network is known to be unavailable, and if there is an exception here regardless it will no longer be logged at an error level. This should bring the behavior of this functionality in line with the other network behavior of the SDK.
Thanks, @gwhelanLD
Hi @gwhelanLD, I noticed this issue is still happening after updating to 3.0.0 version. Could you please consider taking a look at it again? Thanks!
Hi @tariana,
I think I see what you're talking about. Our fix did address the error level log messages as well as these messages being repeated on the diagnostic reporting interval, but we're still getting an initial warning message (or two) if started without an internet connection. That's still non-ideal when the SDK should be aware of the network unavailability, so we'll definitely see about addressing this. I believe I should be able to get a fix in with the next patch release that should be coming soon.
Thanks for letting us know, @gwhelanLD
Hi @gwhelanLD , we are still observing a lot of Exceptions thrown on version 3.0.2. Do you have any updates on the fix?
Hi, any update on this? It still happens a lot on version 4.2.3.
When my app starts without network connection (e.g. WiFi is off) - the LD library logs the following errors:
It's understandable that the library would try to connect to the mothership and that would fail - but treating these failures as ERRORS is not right. This spams the logs for no good reason.
Please, maybe consider, logging these as Warnings? Ideally, you wouldn't even try to connect if there is no internet connectivity. Thanks.