-
Notifications
You must be signed in to change notification settings - Fork 84
Warnings from Hashie gem #366
Comments
Commenting out |
|
The issue is a bit painful since it logs on stdout.
it does not solve the real issue though. |
this also helps a bit: # get rid of Hashie / VariaModel warnings
Hashie.logger.level = Logger.const_get 'ERROR' |
Windows 8.1 Single Language:
In my case I went to: and change L6 I really don't want any logger messages now and since I'm using it inside vagrant is quite difficult for me to understand where should I block this logger or change it's level to ERROR. now:
|
Resolved the issue by upgrading Berkshelf to version 5.6.2. |
Just upgraded Berkshelf to 5.6.4 but still have the warnings. |
I'm in the same boat as @yourivdlans however, I'm on ChefDK 1.3.40 with Berkshelf 5.6.4, |
Whatever code is causing these warnings to go to stdout instead of stderr is.. ungood. |
There is nothing wrong with sending warnings to stdout like most things in technology it depends on what you are doing. That being said not respecting options is not good. |
I think that should be a
example test:
by default warnings are on:
turning off warnings:
|
I see this with the newest chef 13.6.4 and berkshelf 6.3.1 easily reproduced by installing/running |
Using hashie (3.5.7, 3.5.5) and berkshelf (6.3.1) and using the following in my ruby file: But, still see the Warnings: W, [2018-03-16T14:02:56.924739 #17419] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key as a property. You can still access the key via the #[] method. |
Can anyone suggest a fix/solution for the above ERROR please. |
|
They are warnings not errors you can suppress them by invoking ruby as I described #366 (comment)
|
I updated the hashie in my gemfile to the newest (3.5.1) and am getting warnings now anytime i use the berks command
These warnings were added by Hashie:
hashie/hashie#381
Berkshelf uses ridley to talk to the chef server. Ridley appears to the be the one that is causing the warnings.
Moved from berkshelf/berkshelf#1665
The text was updated successfully, but these errors were encountered: