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:
parent
56663d45fc
commit
dba351e9c2
3 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue