Skip to content

Commit

Permalink
dcap: drop READV io log level from info to debug
Browse files Browse the repository at this point in the history
Ticket: #7980
Acked-by: Paul Millar
Target: master, 2.6
Require-book: no
Require-notes: yes
  • Loading branch information
kofemann committed Aug 30, 2013
1 parent 737abd8 commit 94ffafc
Showing 1 changed file with 6 additions and 8 deletions.
Expand Up @@ -734,11 +734,9 @@ public void runIO(FileAttributes fileAttributes,
}finally{

try{
if(_logSocketIO.isDebugEnabled()) {
_logSocketIO.debug("Socket CLOSE remote = " + socketChannel.socket().getInetAddress() + ":" + socketChannel.socket().getPort() +
" local = " + socketChannel.socket().getLocalAddress() + ":" + socketChannel.socket().getLocalPort());
}

_logSocketIO.debug("Socket CLOSE remote = {}:{} local {}:{}",
socketChannel.socket().getInetAddress(), socketChannel.socket().getPort(),
socketChannel.socket().getLocalAddress(), socketChannel.socket().getLocalPort());
socketChannel.close();
}catch(Exception xe){}

Expand Down Expand Up @@ -782,7 +780,7 @@ private void doTheReadv(RepositoryChannel fileChannel, DCapOutputByteBuffer cntO
socketChannel.write(cntOut.buffer());

int blocks = requestBLock.nextInt();
_log.info("READV: {} to read", blocks);
_log.debug("READV: {} to read", blocks);
final int maxBuffer = _bigBuffer.capacity() - 4;
for(int i = 0; i < blocks; i++) {

Expand All @@ -791,7 +789,7 @@ private void doTheReadv(RepositoryChannel fileChannel, DCapOutputByteBuffer cntO
int count = requestBLock.nextInt();
int len = count;

_log.info("READV: offset/len: {}/{}", offset, count);
_log.debug("READV: offset/len: {}/{}", offset, count);

while(count > 0) {

Expand All @@ -811,7 +809,7 @@ private void doTheReadv(RepositoryChannel fileChannel, DCapOutputByteBuffer cntO

_bigBuffer.flip();
_bigBuffer.putInt(rc).rewind();
_log.info("READV: sending: {} bytes", _bigBuffer.limit());
_log.debug("READV: sending: {} bytes", _bigBuffer.limit());
socketChannel.write(_bigBuffer);

count -= rc;
Expand Down

0 comments on commit 94ffafc

Please sign in to comment.