This is an automated email from the ASF dual-hosted git repository.

masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new a5577e2  Cleanup debug logs around SSLWriteBuffer
a5577e2 is described below

commit a5577e20ea2cc404e49641884aafd8933ec9bbe2
Author: Masaori Koshiba <[email protected]>
AuthorDate: Thu Jul 25 12:06:25 2019 +0900

    Cleanup debug logs around SSLWriteBuffer
---
 iocore/net/SSLNetVConnection.cc | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/iocore/net/SSLNetVConnection.cc b/iocore/net/SSLNetVConnection.cc
index fcac2be..2236843 100644
--- a/iocore/net/SSLNetVConnection.cc
+++ b/iocore/net/SSLNetVConnection.cc
@@ -729,6 +729,8 @@ SSLNetVConnection::load_buffer_and_write(int64_t towrite, 
MIOBufferAccessor &buf
     return this->super::load_buffer_and_write(towrite, buf, total_written, 
needs);
   }
 
+  Debug("ssl", "towrite=%" PRId64, towrite);
+
   do {
     // What is remaining left in the next block?
     l                   = buf.reader()->block_read_avail();
@@ -773,8 +775,7 @@ SSLNetVConnection::load_buffer_and_write(int64_t towrite, 
MIOBufferAccessor &buf
 
     try_to_write       = l;
     num_really_written = 0;
-    Debug("ssl", "SSLNetVConnection::loadBufferAndCallWrite, before 
SSLWriteBuffer, l=%" PRId64 ", towrite=%" PRId64 ", b=%p", l,
-          towrite, current_block);
+    Debug("v_ssl", "b=%p l=%" PRId64, current_block, l);
     err = SSLWriteBuffer(ssl, current_block, l, num_really_written);
 
     // We wrote all that we thought we should
@@ -783,8 +784,8 @@ SSLNetVConnection::load_buffer_and_write(int64_t towrite, 
MIOBufferAccessor &buf
       buf.reader()->consume(num_really_written);
     }
 
-    Debug("ssl", "SSLNetVConnection::loadBufferAndCallWrite,Number of bytes 
written=%" PRId64 " , total=%" PRId64 "",
-          num_really_written, total_written);
+    Debug("ssl", "try_to_write=%" PRId64 " written=%" PRId64 " 
total_written=%" PRId64, try_to_write, num_really_written,
+          total_written);
     NET_INCREMENT_DYN_STAT(net_calls_to_write_stat);
   } while (num_really_written == try_to_write && total_written < towrite);
 

Reply via email to