mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
webrick: WEBrick::Log requires path arg when given string
Allowing a user to specify "| command" via Kernel#open is nonsensical since we never read from the resultant IO. * lib/webrick/log.rb (initialize): replace Kernel#open with File.open [Misc #14216] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1895a48856
commit
1989371d10
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ module WEBrick
|
|||
@level = level || INFO
|
||||
case log_file
|
||||
when String
|
||||
@log = open(log_file, "a+")
|
||||
@log = File.open(log_file, "a+")
|
||||
@log.sync = true
|
||||
@opened = true
|
||||
when NilClass
|
||||
|
|
Loading…
Add table
Reference in a new issue