Issue #14595 has been updated by jeremyevans0 (Jeremy Evans).

Status changed from Open to Closed

jeremyevans0 (Jeremy Evans) wrote:
> I have added a pull request to logger upstream for this: https://github.com/ruby/logger/pull/30

Pull request was merged, so this can be closed.

----------------------------------------
Bug #14595: Set filename when initializing a logger with a File object to make reopen work
https://bugs.ruby-lang.org/issues/14595#change-78067

* Author: grosser (Michael Grosser)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.5.0
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
see https://github.com/rails/rails/issues/32211#issuecomment-371995187

would be great if it could auto-set filename from file.path
or alternatively handle the case of dev being a `File` during reopen



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>