chef-provisioning-ssh icon indicating copy to clipboard operation
chef-provisioning-ssh copied to clipboard

"can't convert "debug" to any of the Logger level constants"

Open medyagh opened this issue 9 years ago • 2 comments

I am trying to figure out the issue I posted here ( that it wont ssh to my machine) by adding log level,

  :ssh_options => {   :password => 'blahblah',   :verbose => :debug   }

but it yells at me when I try to set the log level to debug

    ArgumentError
    -------------
    can't convert "debug" to any of the Logger level constants

medyagh avatar Jul 13 '15 13:07 medyagh

Hit the same issue and while searching, I saw this post.

I also saw https://github.com/net-ssh/net-ssh/blob/master/lib/net/ssh.rb#L179-L181

Switching my config to :verbose => Logger::DEBUG worked for me.

balajijegan avatar Jul 29 '15 05:07 balajijegan

I believe you will need net-ssh (2.9.3.beta1) to use the symbol :debug

-balaji

balajijegan avatar Jul 29 '15 06:07 balajijegan