IDEMPIERE-656 ViewLog shows AppsServerOK=false in the the error tab of the about window.
This commit is contained in:
parent
ed5fcfd04a
commit
cc0d7302cb
|
@ -1108,9 +1108,17 @@ public class CConnection implements Serializable, Cloneable
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder (m_info[0] != null ? m_info[0] : "");
|
StringBuilder sb = new StringBuilder (m_info[0] != null ? m_info[0] : "");
|
||||||
sb.append (" - ").append (m_info[1] != null ? m_info[1] : "")
|
sb.append (" - ").append (m_info[1] != null ? m_info[1] : "")
|
||||||
.append ("\n").append (getDatabase ().toString ())
|
.append ("\n").append (getDatabase ().toString ());
|
||||||
.append ("\nAppsServerOK=").append (isAppsServerOK (false))
|
|
||||||
.append (", DatabaseOK=").append (isDatabaseOK ());
|
if (Ini.isClient())
|
||||||
|
{
|
||||||
|
sb.append ("\nAppsServerOK=").append (isAppsServerOK (false))
|
||||||
|
.append (", DatabaseOK=").append (isDatabaseOK ());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sb.append ("\nDatabaseOK=").append (isDatabaseOK ());
|
||||||
|
}
|
||||||
return sb.toString ();
|
return sb.toString ();
|
||||||
} // getInfo
|
} // getInfo
|
||||||
|
|
||||||
|
|
|
@ -559,8 +559,8 @@ public class CLogMgt
|
||||||
sb.append(getMsg("ImplementationVendor")).append(eq).append(org.compiere.Adempiere.getImplementationVendor()).append(NL);
|
sb.append(getMsg("ImplementationVendor")).append(eq).append(org.compiere.Adempiere.getImplementationVendor()).append(NL);
|
||||||
sb.append(getMsg("ImplementationVersion")).append(eq).append(org.compiere.Adempiere.getImplementationVersion()).append(NL);
|
sb.append(getMsg("ImplementationVersion")).append(eq).append(org.compiere.Adempiere.getImplementationVersion()).append(NL);
|
||||||
//
|
//
|
||||||
sb.append("AdempiereHome = ").append(Adempiere.getAdempiereHome()).append(NL);
|
sb.append("iDempiereHome = ").append(Adempiere.getAdempiereHome()).append(NL);
|
||||||
sb.append("AdempiereProperties = ").append(Ini.getPropertyFileName()).append(NL);
|
sb.append("iDempiereProperties = ").append(Ini.getPropertyFileName()).append(NL);
|
||||||
sb.append(Env.getLanguage(Env.getCtx())).append(NL);
|
sb.append(Env.getLanguage(Env.getCtx())).append(NL);
|
||||||
MClient client = MClient.get(Env.getCtx());
|
MClient client = MClient.get(Env.getCtx());
|
||||||
sb.append(client).append(NL);
|
sb.append(client).append(NL);
|
||||||
|
@ -686,15 +686,20 @@ public class CLogMgt
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
CConnection cc = CConnection.get();
|
CConnection cc = CConnection.get();
|
||||||
// Host
|
// Host
|
||||||
sb.append(cc.getAppsHost()).append(" (");
|
sb.append(cc.getAppsHost());
|
||||||
|
|
||||||
|
if (Ini.isClient())
|
||||||
|
{
|
||||||
|
sb.append(" (");
|
||||||
|
|
||||||
// Server
|
// Server
|
||||||
if (!cc.getAppsHost().equalsIgnoreCase("MyAppsServer") && cc.isAppsServerOK(false))
|
if (!cc.getAppsHost().equalsIgnoreCase("MyAppsServer") && cc.isAppsServerOK(false))
|
||||||
sb.append(CConnection.get().getServerVersion());
|
sb.append(CConnection.get().getServerVersion());
|
||||||
else
|
else
|
||||||
sb.append(getMsg("NotActive"));
|
sb.append(getMsg("NotActive"));
|
||||||
//
|
//
|
||||||
sb.append(")\n ");
|
sb.append(")\n ");
|
||||||
|
}
|
||||||
//
|
//
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
} // getServerInfo
|
} // getServerInfo
|
||||||
|
|
Loading…
Reference in New Issue