github: assert -> warning

This is bad, but will be fixed later
This commit is contained in:
Aleksey Pivovarov
2014-02-24 19:31:51 +04:00
parent 4edfd8ed17
commit 5a6339bd06
@@ -94,7 +94,9 @@ public class GithubApiUtil {
@Nullable String requestBody,
@NotNull Collection<Header> headers,
@NotNull HttpVerb verb) throws IOException {
LOG.assertTrue(!EventQueue.isDispatchThread() || ApplicationManager.getApplication().isUnitTestMode(), "Network operation in EDT");
if (EventQueue.isDispatchThread() && !ApplicationManager.getApplication().isUnitTestMode()) {
LOG.warn("Network operation in EDT");
}
HttpMethod method = null;
try {