mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
69761: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3/Cloud) 69649: Merged DEV to V4.2-BUG-FIX 69604: MNT-11378: Intermittent test failures: ProcessWorkflowApiTest and TaskWorkflowApiTest - Add logging to find out cause of failing on bamboo. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@70442 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -75,10 +75,15 @@ public abstract class AbstractTestApi
|
||||
}
|
||||
|
||||
protected void log(String msg)
|
||||
{
|
||||
log(msg, null);
|
||||
}
|
||||
|
||||
protected void log(String msg, Throwable t)
|
||||
{
|
||||
if(logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug(msg);
|
||||
logger.debug(msg, t);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -2154,13 +2154,17 @@ public class ProcessWorkflowApiTest extends EnterpriseWorkflowTestApi
|
||||
{
|
||||
activitiProcessEngine.getRuntimeService().deleteProcessInstance(processInstanceId, null);
|
||||
}
|
||||
catch(Exception e) {}
|
||||
catch(Exception e)
|
||||
{
|
||||
log("Error while cleaning up process instance", e);
|
||||
}
|
||||
activitiProcessEngine.getHistoryService().deleteHistoricProcessInstance(processInstanceId);
|
||||
}
|
||||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
// Ignore error during cleanup
|
||||
log("Error while cleaning up process instance", t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -3880,7 +3880,7 @@ public class TaskWorkflowApiTest extends EnterpriseWorkflowTestApi
|
||||
catch(Throwable t)
|
||||
{
|
||||
// Ignore error during cleanup to prevent swallowing potential assetion-exception
|
||||
log("Error while cleaning up process instance");
|
||||
log("Error while cleaning up process instance", t);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3898,7 +3898,7 @@ public class TaskWorkflowApiTest extends EnterpriseWorkflowTestApi
|
||||
catch(Throwable t)
|
||||
{
|
||||
// Ignore error during cleanup to prevent swallowing potential assetion-exception
|
||||
log("Error while cleaning up process instance");
|
||||
log("Error while cleaning up process instance", t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -5,5 +5,5 @@ log4j.appender.Console.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
|
||||
|
||||
log4j.logger.org.alfresco=WARN
|
||||
#log4j.logger.org.alfresco.rest.api=DEBUG
|
||||
log4j.logger.org.alfresco.rest.api=DEBUG
|
||||
log4j.logger.org.eclipse.jetty.util.log=INFO
|
Reference in New Issue
Block a user