-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
NetworkOnMainThreadException when SocketAppender host is a domain name #90
Comments
Same problem. Did you figure out the solution? |
I worked around it by simply entering my server’s (thankfully static) IP address. |
ok, that's not an option for me. Thanks for reply anyway |
@gauravdott, Indeed, the lazy flag was unintentionally removed during a merge from the main logback project that completely rewrote the I think this issue is actually a duplicate of #65. |
A possible workaround is to use |
Closing this stale issue, as there's workaround in place (see previous comment). Please create a new issue if the issue resurfaces. |
I’m successfully using a
SocketAppender
to log to a remote server when the host is set as an IP address. However, when specifying a domain name as host (otherwise identical configuration), I get aNetworkOnMainThreadExcept
during startup. Possible problem: The “Lazy” setting does not seem to work.The configuration file (and in fact the entire project) is here on Github; Log showing the exception, excerpt:
The text was updated successfully, but these errors were encountered: