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:
parent
e80c8d0163
commit
9685a343a4
|
@ -473,11 +473,10 @@ public final class Adempiere
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Check Version
|
// Check Version
|
||||||
if (!Login.isJavaOK(isClient) && isClient)
|
if (isClient && !Login.isJavaOK(isClient))
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
|
|
||||||
CLogMgt.initialize(isClient);
|
Ini.setClient (isClient); // init logging in Ini
|
||||||
Ini.setClient (isClient); // Ini requires Logging
|
|
||||||
// Init Log
|
// Init Log
|
||||||
log = CLogger.getCLogger(Adempiere.class);
|
log = CLogger.getCLogger(Adempiere.class);
|
||||||
// Greeting
|
// Greeting
|
||||||
|
|
|
@ -234,7 +234,7 @@ public final class Ini implements Serializable
|
||||||
private static String s_propertyFileName = null;
|
private static String s_propertyFileName = null;
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
private static Logger log = Logger.getLogger(Ini.class.getName());
|
private static Logger log = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save INI parameters to disk
|
* Save INI parameters to disk
|
||||||
|
@ -711,7 +711,11 @@ public final class Ini implements Serializable
|
||||||
*/
|
*/
|
||||||
public static void setClient (boolean client)
|
public static void setClient (boolean client)
|
||||||
{
|
{
|
||||||
|
if (log != null) //already initialized
|
||||||
|
return;
|
||||||
s_client = client;
|
s_client = client;
|
||||||
|
CLogMgt.initialize(client);
|
||||||
|
log = Logger.getLogger(Ini.class.getName());
|
||||||
} // setClient
|
} // setClient
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -71,16 +71,6 @@ public class WebUIServlet extends DHtmlLayoutServlet
|
||||||
/**
|
/**
|
||||||
* Start ADempiere
|
* 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);
|
boolean started = Adempiere.startup(false);
|
||||||
if(!started)
|
if(!started)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue