-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow removal of verbose “Unable to resolve host” log entries #162
Comments
It would be great if the LoggerProvider had a way to filter our connectivity related issues.
|
Hi @PattaFeuFeu , Thanks for reporting this! It is actually customizable by implementing your own logger, see example, also check @niqo01 's example above too. We also provide a log level configure, to filter out/disable logs if needed. The above log you mentioned is important to identify the issue, so I think we should keep it in the default logger. But again, if you don't need it, feel free to customize the logger and filter it out. Thanks! |
Thanks for the nice “RTFM” @liuyang1520—I should have checked it before 🙈 That should help quite a bit. Thanks!
Nah, as a default that absolutely makes sense. 😊 |
Expected Behaviour
I would like to be able to set up Amplitude so that it doesn’t constantly log
Current Behaviour
My logs are bombarded with the log entries mentioned above.
I’m getting these issues because an app I work on connects to IoT devices via Wi-Fi. If no other cellular connection is available or if the device the app is running on doesn’t support Wi-Fi STA/STA concurrency, the Amplitude SDK won’t be able to send events in real-time for quite a while until a user disconnects from the connected device.
I assume the same would happen if users block Amplitude using privacy VPNs on their Android devices, Pi-Hole or similar on their network, or a privacy-conscious DNS server for lookup of IP addresses.
Possible Solution
Either don’t log that event at all, or allow us to limit logging an an opt-out basis
Steps to Reproduce
api2.amplitude.com
Environment
The text was updated successfully, but these errors were encountered: