]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
rearrange debug logs to make more sense
authorRoger Dingledine <arma@torproject.org>
Tue, 7 Dec 2004 21:57:10 +0000 (21:57 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 7 Dec 2004 21:57:10 +0000 (21:57 +0000)
svn:r3116

src/or/buffers.c

index db4d4c173b17878aa442d15ea1b8f9a11c8a93f8..aaff1df5cc9f586e91f94a4d97657ce36e802abf 100644 (file)
@@ -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;
   }