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
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue