Changing the log level throws error
mnort9 opened this issue · 2 comments
mnort9 commented
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
gitbnw commented
this worked for me:
client = Wit.new(access_token: access_token, actions: actions)
client.logger.level = Logger::DEBUG
blandinw commented
What @gitbnw said should work :-)
https://github.com/wit-ai/wit-ruby/blob/master/README.md#logging