Print log message for re-handling extra bytes from a data block read

Sat, 31 Jul 2010 18:08:15 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 31 Jul 2010 18:08:15 +0100
changeset 3
aebc17f0d002
parent 2
c5215e30b6ef
child 4
31e1af4738cb

Print log message for re-handling extra bytes from a data block read

memcached.lua file | annotate | diff | comparison | revisions
--- a/memcached.lua	Sat Jul 31 18:07:38 2010 +0100
+++ b/memcached.lua	Sat Jul 31 18:08:15 2010 +0100
@@ -50,6 +50,7 @@
 			conn:setlistener(memcached_listener);
 			conn:set_mode("*l");
 			if received_count > bytes then
+				log("debug", "Re-handling %d extra bytes", received_count-bytes);
 				memcached_listener.onincoming(conn, received_buffer:sub(bytes+1));
 			end
 		end

mercurial