mirror of
https://github.com/lloeki/nanoserve.git
synced 2025-12-06 11:14:40 +01:00
Accumulate in buffer only for debug output
This commit is contained in:
parent
c3a69ac1ed
commit
803d910a3e
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ module NanoServe
|
||||||
line = conn.readline
|
line = conn.readline
|
||||||
break if line.chomp == ''
|
break if line.chomp == ''
|
||||||
req << line
|
req << line
|
||||||
buf << line
|
buf << line if logger.debug?
|
||||||
end
|
end
|
||||||
logger.debug "request:\n" + buf.gsub(/^/, ' ')
|
logger.debug "request:\n" + buf.gsub(/^/, ' ')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue