From 5a6339bd067cf87a5e62a50d466700c3cc178226 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Mon, 24 Feb 2014 19:21:36 +0400 Subject: [PATCH] github: assert -> warning This is bad, but will be fixed later --- .../src/org/jetbrains/plugins/github/api/GithubApiUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/github/src/org/jetbrains/plugins/github/api/GithubApiUtil.java b/plugins/github/src/org/jetbrains/plugins/github/api/GithubApiUtil.java index 2036b3546030..ec7d3ae2b51d 100644 --- a/plugins/github/src/org/jetbrains/plugins/github/api/GithubApiUtil.java +++ b/plugins/github/src/org/jetbrains/plugins/github/api/GithubApiUtil.java @@ -94,7 +94,9 @@ public class GithubApiUtil { @Nullable String requestBody, @NotNull Collection
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 {