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

@ -1,3 +1,10 @@
Tue Sep 9 01:50:45 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
* lib/webrick/httpserver.rb (HTTPServer#access_log): add "\n" to
the message.
* lib/webrick/log.rb (BasicLog#log): add "\n" only if needed.
Mon Sep 8 22:15:33 2003 <nagai@ai.kyutech.ac.jp> Mon Sep 8 22:15:33 2003 <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/multi-tk.rb: modify security check at creating * ext/tk/lib/multi-tk.rb: modify security check at creating

View file

@ -123,7 +123,7 @@ module WEBrick
def access_log(config, req, res) def access_log(config, req, res)
param = AccessLog::setup_params(config, req, res) param = AccessLog::setup_params(config, req, res)
@config[:AccessLog].each{|logger, fmt| @config[:AccessLog].each{|logger, fmt|
logger << AccessLog::format(fmt, param) logger << AccessLog::format(fmt+"\n", param)
} }
end end

View file

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