This commit is contained in:
coderfengyun 2014-01-06 17:10:09 +08:00
parent 5eec7038c3
commit 1d4fcbcb50
6 changed files with 9 additions and 9 deletions

View File

@ -208,7 +208,7 @@ public class Bench4qTestScriptAdapter implements IScriptAdapter {
this.setRunScenarioModel((RunScenarioModel) MarshalHelper
.unmarshal(RunScenarioModel.class, text));
} catch (JAXBException e) {
logger.error(ExceptionLog.getExceptionStackTrace(e));
logger.error(ExceptionLog.getStackTrace(e));
this.setRunScenarioModel(new RunScenarioModel());
}
}

View File

@ -96,9 +96,9 @@ public class HttpRequestHeader {
} catch (IOException e) {
throw e;
} catch (HttpException e) {
log.error(ExceptionLog.getExceptionStackTrace(e));
log.error(ExceptionLog.getStackTrace(e));
} catch (NumberFormatException e) {
log.error(ExceptionLog.getExceptionStackTrace(e));
log.error(ExceptionLog.getStackTrace(e));
}
}

View File

@ -42,7 +42,7 @@ public class RequestHandler implements Runnable {
this.header = new HttpRequestHeader(this.clientIn);
} catch (IOException e) {
log.error("truncated request from browser: "
+ ExceptionLog.getExceptionStackTrace(e).toString()
+ ExceptionLog.getStackTrace(e).toString()
+ this.header.url);
throw new Utils.SilentException();
}
@ -174,7 +174,7 @@ public class RequestHandler implements Runnable {
}
} catch (Exception e) {
log.error(ExceptionLog.getExceptionStackTrace(e));
log.error(ExceptionLog.getStackTrace(e));
} finally {
if (this.serverSocket != null) {
this.serverSocket.close();
@ -192,7 +192,7 @@ public class RequestHandler implements Runnable {
this.clientSocket.close();
log.trace("closed client socket");
} catch (Throwable localThrowable) {
log.error(ExceptionLog.getExceptionStackTrace(localThrowable));
log.error(ExceptionLog.getStackTrace(localThrowable));
}
}
}

View File

@ -35,7 +35,7 @@ public class ContentDecoder {
System.out.println("ouputStream's size is" + outputStream.size());
return outputStream.toByteArray();
} catch (Exception e) {
logger.error(ExceptionLog.getExceptionStackTrace(e));
logger.error(ExceptionLog.getStackTrace(e));
return null;
}

View File

@ -21,7 +21,7 @@ public class GzipDecoder extends ContentDecoder {
}
return outputStream.toByteArray();
} catch (IOException e) {
logger.error(ExceptionLog.getExceptionStackTrace(e));
logger.error(ExceptionLog.getStackTrace(e));
return null;
}
}

View File

@ -155,7 +155,7 @@ public class ResponseParser {
charset = Charset.forName(this.getResponseHeader().getCharset());
} catch (Exception e) {
charset = Charset.forName("utf-8");
logger.error(ExceptionLog.getExceptionStackTrace(e));
logger.error(ExceptionLog.getStackTrace(e));
}
this.setResponseBody(new String(contentBodyAfterDecoded, charset));
}