Skip to content

Disable mash warnings (review catch up)#273

Merged
unasuke merged 3 commits intoitamae-kitchen:masterfrom
unasuke:disable-mash-warnings
Dec 14, 2018
Merged

Disable mash warnings (review catch up)#273
unasuke merged 3 commits intoitamae-kitchen:masterfrom
unasuke:disable-mash-warnings

Conversation

@unasuke
Copy link
Member

@unasuke unasuke commented Dec 14, 2018

original pull request description ( by @hnmx4 )

for #243.
I use a Hashie developer’s solution that solves issue similar to issue#243 as reference.

hashie/hashie#394

I just released Hashie v3.5.2 which has the disable_warnings feature for the Mash logger and sets the Hashie logger to the Rails logger when we detect that we're running in Rails. Hopefully, this helps!

https://github.com/intridea/hashie

You can also disable the logging in subclasses of Mash:

class Response < Hashie::Mash
  disable_warnings
end

I added commits for @sue445 's comment

I prefer add require 'itamae/mash' to lib/itamae.rb than here.

#244 (comment)

hnmx4 and others added 3 commits December 11, 2018 11:39
to use Itamae::Mash in the whole of itamae
to suppress hashie warning messages
@unasuke unasuke self-assigned this Dec 14, 2018
@unasuke unasuke requested a review from sue445 December 14, 2018 08:34
Copy link
Member

@sue445 sue445 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@unasuke
Copy link
Member Author

unasuke commented Dec 14, 2018

YAY!

@unasuke unasuke merged commit 2d1f66a into itamae-kitchen:master Dec 14, 2018
@unasuke unasuke deleted the disable-mash-warnings branch December 14, 2018 08:53
@unasuke unasuke mentioned this pull request Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants