Register Faye Server

How to enable logging on a Faye server? I bind:

Faye::Logging.log_level = :debug Faye.logger = lambda { |m| puts m }

I get the following error:

/faye.ru:5:in `block in <main>': undefined method `log_level=' for Faye::Logging:Module (NoMethodError)

I am using Faye version 1.1.2 for Ruby on Rails 4

+4
source share
1 answer

log_level Deprecated in this version of Faye.

You must set the log level to the object Loggerand then pass it to Faye.logger.

+2
source

Source: https://habr.com/ru/post/1620387/


All Articles