diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-16 03:16:42 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-16 03:16:42 +0000 |
commit | 2b45e179f023b76bc34e879530be6682311c47c0 (patch) | |
tree | 60ab3d950c416f65cb032f5b9a814a0be103c7e0 /lib/net/protocol.rb | |
parent | 3181e052f29fdadab564db7b05b224f862db5b4f (diff) | |
download | ruby-2b45e179f023b76bc34e879530be6682311c47c0.tar.gz ruby-2b45e179f023b76bc34e879530be6682311c47c0.tar.xz ruby-2b45e179f023b76bc34e879530be6682311c47c0.zip |
* lib/net/protocol.rb: logging response body. [experimental] [ruby-list:38800]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index 3c76955cf..316f5e51a 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -120,7 +120,7 @@ module Net # :nodoc: def read( len, dest = '', ignore_eof = false ) LOG "reading #{len} bytes..." - LOG_off() + # LOG_off() # experimental: [ruby-list:38800] read_bytes = 0 begin while read_bytes + @rbuf.size < len @@ -131,14 +131,14 @@ module Net # :nodoc: rescue EOFError raise unless ignore_eof end - LOG_on() + # LOG_on() LOG "read #{read_bytes} bytes" dest end def read_all( dest = '' ) LOG 'reading all...' - LOG_off() + # LOG_off() # experimental: [ruby-list:38800] read_bytes = 0 begin while true @@ -148,7 +148,7 @@ module Net # :nodoc: rescue EOFError ; end - LOG_on() + # LOG_on() LOG "read #{read_bytes} bytes" dest end |