Sha256: adf3b5f6cd792cbd458f72747d20de7943d06950dbae3f1b6ea251c75cf4dbd1

Contents?: true

Size: 260 Bytes

Versions: 47

Compression:

Stored size: 260 Bytes

Contents

module Para
  class LogConfig
    def self.with_log_level(level, &block)
      begin
        log_level = Rails.logger.level
        Rails.logger.level = :fatal

        block.call
      ensure
        Rails.logger.level = log_level
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
para-0.12.4 lib/para/log_config.rb
para-0.12.3 lib/para/log_config.rb
para-0.12.2 lib/para/log_config.rb
para-0.12.1 lib/para/log_config.rb
para-0.12.0 lib/para/log_config.rb
para-0.11.4 lib/para/log_config.rb
para-0.11.3 lib/para/log_config.rb
para-0.11.2 lib/para/log_config.rb
para-0.11.1 lib/para/log_config.rb
para-0.11.0 lib/para/log_config.rb
para-0.10.0 lib/para/log_config.rb
para-0.9.4 lib/para/log_config.rb
para-0.9.3.3 lib/para/log_config.rb
para-0.9.3.2 lib/para/log_config.rb
para-0.9.3.1 lib/para/log_config.rb
para-0.9.2 lib/para/log_config.rb
para-0.9.0 lib/para/log_config.rb
para-0.8.15 lib/para/log_config.rb
para-0.8.14 lib/para/log_config.rb
para-0.8.13 lib/para/log_config.rb