mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
volume upload: removed debug messages in post request handler.
This commit is contained in:
parent
ef0c5d35cf
commit
c5be9d0b9b
@ -2659,24 +2659,10 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
|
||||
|
||||
public void handleInternal(HttpRequest httpRequest, HttpResponse httpResponse, HttpContext httpContext) throws HttpException, IOException {
|
||||
|
||||
s_logger.info(""); // empty line before each request
|
||||
s_logger.info(httpRequest.getRequestLine());
|
||||
s_logger.info("-------- HEADERS --------");
|
||||
for (Header header : httpRequest.getAllHeaders()) {
|
||||
s_logger.info(header.getName() + " : " + header.getValue());
|
||||
}
|
||||
s_logger.info("--------");
|
||||
|
||||
HttpEntity entity = null;
|
||||
if (httpRequest instanceof HttpEntityEnclosingRequest) {
|
||||
entity = ((HttpEntityEnclosingRequest) httpRequest).getEntity();
|
||||
}
|
||||
|
||||
if (entity != null) {
|
||||
s_logger.info(entity.getContentType());
|
||||
s_logger.info(entity.getContentLength());
|
||||
s_logger.info(entity.isChunked());
|
||||
}
|
||||
// For some reason, just putting the incoming entity into
|
||||
// the response will not work. We have to buffer the message.
|
||||
byte[] data;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user