[ruby-core:93887] [Ruby master Feature#9532] Expose logger monitor

From: hsbt@...
Date: 2019-07-23 15:10:31 UTC
List: ruby-core #93887
Issue #9532 has been updated by hsbt (Hiroshi SHIBATA).

Assignee changed from nahi (Hiroshi Nakamura) to sonots (Naotoshi Seo)

----------------------------------------
Feature #9532: Expose logger monitor
https://bugs.ruby-lang.org/issues/9532#change-79870

* Author: arthurnn (Arthur Neves)
* Status: Feedback
* Priority: Normal
* Assignee: sonots (Naotoshi Seo)
* Target version: 
----------------------------------------
I was wondering if we could do this type of change on the logger class:

https://github.com/arthurnn/ruby/commit/376b9f944948662ac816ad179ae90bc50a2a6c8f

I am proposing this, because if we have access to the mutex, on the logger instance, we would be able to synchronize methods such as, https://github.com/rails/rails/blob/95f5f8167ff86550d7fa9f5f7419cc9b38ef9704/activesupport/lib/active_support/logger_silence.rb#L12 . And make it thread-safe.



-- 
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>

In This Thread

Prev Next