From 643207c0f86b3d2b00514f3f4ff2c20bfbf7af41 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 2 Jun 2011 00:17:57 -0500 Subject: [PATCH] Fix a problem with disconnecting the eclipse console. Logging is redirected to a file and the eclipse console cannot be used to drive OSGi. --- org.adempiere.base/src/org/compiere/Adempiere.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/Adempiere.java b/org.adempiere.base/src/org/compiere/Adempiere.java index 2f14bf0d9a..1973f70baa 100644 --- a/org.adempiere.base/src/org/compiere/Adempiere.java +++ b/org.adempiere.base/src/org/compiere/Adempiere.java @@ -469,7 +469,9 @@ public final class Adempiere System.exit(1); Ini.setClient (isClient); // init logging in Ini - CLogMgt.initialize(isClient); + + if (! isClient) // Calling this on client is dropping the link with eclipse console + CLogMgt.initialize(isClient); // Init Log log = CLogger.getCLogger(Adempiere.class); // Greeting