1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/webrick/httpserver.rb (HTTPServer#access_log): add "\n" to

the message.

* lib/webrick/log.rb (BasicLog#log): add "\n" only if needed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
gotoyuzo 2003-09-08 16:57:25 +00:00
parent 56663d45fc
commit dba351e9c2
3 changed files with 12 additions and 2 deletions

View file

@ -36,7 +36,10 @@ module WEBrick
def log(level, data)
if @log && level <= @level
@log << (data + "\n")
if /\n\Z/ != data
@log << data
@log << "\n" if /\n\Z/ !~ data
end
end
end