wit-ai/wit-ruby

Changing the log level throws error

mnort9 opened this issue · 2 comments

Changing the log level throws the error:

Wit.logger.level = Logger::WARN
=> undefined method `logger' for Wit:Class

Also, a different error when setting the log level in the instance

Wit.new(logger: Logger::WARN, ...
=> undefined method `debug' for 2:Fixnum

this worked for me:

client = Wit.new(access_token: access_token, actions: actions)
client.logger.level = Logger::DEBUG