mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/accesslog.rb (WEBrick::AccessLog#format): support
%{remote}p for logging remote (client) port number. [ruby-dev:42670] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
11b3b5ed90
commit
d99801bbc8
3 changed files with 15 additions and 0 deletions
|
@ -56,6 +56,13 @@ module WEBrick
|
|||
(param = params[spec][param]) ? escape(param) : "-"
|
||||
when ?t
|
||||
params[spec].strftime(param || CLF_TIME_FORMAT)
|
||||
when ?p
|
||||
case param
|
||||
when 'remote'
|
||||
escape(params["i"].peeraddr[1].to_s)
|
||||
else
|
||||
escape(params["p"].to_s)
|
||||
end
|
||||
when ?%
|
||||
"%"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue