Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that arguments to Mixlib::Log#add are passed as is to all loggers #7

Merged
merged 1 commit into from
May 21, 2014
Merged

Ensure that arguments to Mixlib::Log#add are passed as is to all loggers #7

merged 1 commit into from
May 21, 2014

Conversation

ketan
Copy link
Contributor

@ketan ketan commented Dec 15, 2012

I'm attempting to wrap mixlib log with ActiveRecord::TaggedLogger which calls #add on the logger it wraps, it so happens that Mixlib logger breaks in such a situation because it does not pass the arguments transparently to the loggers that it wraps in turn. Thereby causing the logs to print a log message with blank message in it.

For the implementation of TaggedLogger see https://github.com/rails/rails/blob/v3.2.6/activesupport/lib/active_support/tagged_logging.rb#L35

@sersut
Copy link

sersut commented May 21, 2014

Thanks for the patch @ketan. This is 👍 for me.

Any concerns @opscode/client-eng ?

@danielsdeleo
Copy link
Contributor

LGTM

sersut pushed a commit that referenced this pull request May 21, 2014
Ensure that arguments to Mixlib::Log#add are passed as is to all loggers
@sersut sersut merged commit 417baa6 into chef:master May 21, 2014
@sersut
Copy link

sersut commented May 21, 2014

Thanks @ketan for the patch again.

@thommay thommay added Type: Bug Does not work as expected. and removed Bug labels Jan 24, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants