From 3f562affe7cbfb838026a46a52f23ae88948203c Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Thu, 29 Sep 2016 14:45:24 +0200 Subject: [PATCH] =?UTF-8?q?createDebugLogger=20=E2=80=94=20debugFile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/script-debugger/backend/src/util.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/script-debugger/backend/src/util.kt b/platform/script-debugger/backend/src/util.kt index 0918579830b9..36c58622e902 100644 --- a/platform/script-debugger/backend/src/util.kt +++ b/platform/script-debugger/backend/src/util.kt @@ -69,7 +69,10 @@ fun createDebugLogger(@PropertyKey(resourceBundle = Registry.REGISTRY_BUNDLE) ke if (!suffix.isNullOrEmpty()) { debugFile = debugFile.replace(".json", suffix + ".json") } + return createDebugLogger(debugFile) +} +fun createDebugLogger(debugFile: String): MessagingLogger? { val queue = ConcurrentLinkedQueue() val logger = MessagingLogger(queue) ApplicationManager.getApplication().executeOnPooledThread {