add some log
This commit is contained in:
parent
bd0ea68583
commit
111666f3e4
|
@ -94,7 +94,8 @@ public class TestPlanEngine implements TaskCompleteCallback,
|
|||
public UUID runWith(final TestPlanModel testPlanModel, User user) {
|
||||
ExecutorService executorService = Executors.newCachedThreadPool();
|
||||
final UUID testPlanId = UUID.randomUUID();
|
||||
logger.info("name:" + testPlanModel.getName());
|
||||
logger.info("name:" + testPlanModel.getName() + " start to run");
|
||||
logger.info(testPlanId + " start to run");
|
||||
if (!this.getTestPlanService().submitTestPlan(testPlanModel, user,
|
||||
testPlanId)) {
|
||||
return null;
|
||||
|
|
|
@ -9,7 +9,6 @@ import java.util.Date;
|
|||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.bench4q.master.domain.entity.User;
|
||||
import org.bench4q.master.domain.repository.UserRepository;
|
||||
import org.bench4q.master.helper.StringHelper;
|
||||
|
@ -89,8 +88,6 @@ public class AuthenticationManager {
|
|||
}
|
||||
String hex = request.getHeader("Authorization").substring(
|
||||
"Bearer ".length());
|
||||
Logger.getLogger(AuthenticationManager.class).info( request.getHeader("Authorization"));
|
||||
Logger.getLogger(AuthenticationManager.class).info("hex:" + hex);
|
||||
byte[] bytes = this.getStringHelper().convertToBytes(hex);
|
||||
return this.extractAccessToken(bytes);
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@ import org.bench4q.master.domain.entity.TestPlan;
|
|||
import org.bench4q.master.domain.entity.TestPlanScript;
|
||||
import org.bench4q.master.domain.factory.TestPlanFactory;
|
||||
import org.bench4q.master.domain.repository.TestPlanRepository;
|
||||
import org.bench4q.master.exception.ExceptionLog;
|
||||
import org.bench4q.master.helper.SessionHelper;
|
||||
import org.bench4q.share.models.master.statistics.SampleModel;
|
||||
import org.hibernate.Session;
|
||||
|
@ -61,7 +62,7 @@ public class TestScriptResultSave implements Observer {
|
|||
|
||||
public boolean doSaveResult(UUID testPlanRunId, int scriptId,
|
||||
Object resultModel, Date now) {
|
||||
|
||||
|
||||
Session session = this.getSessionHelper().openSession();
|
||||
try {
|
||||
TestPlan testPlan = this.getTestPlanRepository().doGetTestPlanBy(
|
||||
|
@ -77,7 +78,7 @@ public class TestScriptResultSave implements Observer {
|
|||
this.getTestPlanRepository().doUpdateEntity(session, testPlan);
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
logger.error(e, e.fillInStackTrace());
|
||||
logger.error(ExceptionLog.getStackTrace(e));
|
||||
} finally {
|
||||
if (session != null) {
|
||||
session.close();
|
||||
|
|
Loading…
Reference in New Issue