Browse Source

rearrange debug logs to make more sense

svn:r3116
Roger Dingledine 21 years ago
parent
commit
ad4f440e10
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/buffers.c

+ 1 - 1
src/or/buffers.c

@@ -264,9 +264,9 @@ int flush_buf(int s, buf_t *buf, size_t *buf_flushlen)
     return 0;
   } else {
     *buf_flushlen -= write_result;
-    buf_remove_from_front(buf, write_result);
     log_fn(LOG_DEBUG,"%d: flushed %d bytes, %d ready to flush, %d remain.",
            s,write_result,(int)*buf_flushlen,(int)buf->datalen);
+    buf_remove_from_front(buf, write_result);
 
     return write_result;
   }