Adempiere.startup should set Ini.isClient before initialized CLogMgt

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2979844
This commit is contained in:
Heng Sin Low 2010-03-31 08:30:10 +00:00
parent e80c8d0163
commit 9685a343a4
3 changed files with 7 additions and 14 deletions

View File

@ -473,11 +473,10 @@ public final class Adempiere
return true;
// Check Version
if (!Login.isJavaOK(isClient) && isClient)
if (isClient && !Login.isJavaOK(isClient))
System.exit(1);
CLogMgt.initialize(isClient);
Ini.setClient (isClient); // Ini requires Logging
Ini.setClient (isClient); // init logging in Ini
// Init Log
log = CLogger.getCLogger(Adempiere.class);
// Greeting

View File

@ -234,7 +234,7 @@ public final class Ini implements Serializable
private static String s_propertyFileName = null;
/** Logger */
private static Logger log = Logger.getLogger(Ini.class.getName());
private static Logger log = null;
/**
* Save INI parameters to disk
@ -711,7 +711,11 @@ public final class Ini implements Serializable
*/
public static void setClient (boolean client)
{
if (log != null) //already initialized
return;
s_client = client;
CLogMgt.initialize(client);
log = Logger.getLogger(Ini.class.getName());
} // setClient
/**

View File

@ -71,16 +71,6 @@ public class WebUIServlet extends DHtmlLayoutServlet
/**
* Start ADempiere
*/
logger.info("Starting ADempiere...");
try
{
CLogMgt.initialize(false);
}
catch(Exception ex)
{
logger.log(Level.SEVERE, "Could not initialize ADempiere logging Management", ex);
}
boolean started = Adempiere.startup(false);
if(!started)
{