The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Feature #6607

Add support to control verbosity of masterhttp.log

Added by armando migliaccio over 3 years ago. Updated almost 3 years ago.

Status:AcceptedStart date:03/05/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:logging
Target version:3.x
Affected Puppet version:0.25.5 Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

I am trying to reduce the verbosity of masterhttp.log by adding the option ‘rails_loglevel = err’ to the main section of puppet.conf (I tried also puppetd and puppetmasterd for that matter). However when I run:

puppet --configprint rails_loglevel

It keeps saying ‘info’ regardless of that I pass in the config file. I looked at puppet init scripts thinking that it would get overwritten, but that does not seem to be the case. I can’t seem to find a way to change the log level, as the master keeps printing pretty much every thing it can.

Is there any way I can tune the log level down? Is this a bug or a misconfiguration?

History

#1 Updated by James Turnbull over 3 years ago

  • Category set to logging
  • Status changed from Unreviewed to Needs More Information

The rails_loglevel is unrelated to masterhttp.log. The Rails log level is used for the Rails ORM which is mostly used for Stored Configurations.

I don’t think the current masterhttplog file’s verbosity can be configured but I will check.

#2 Updated by armando migliaccio over 3 years ago

Is there any information I can provide from my side?

Thanks

#3 Updated by James Turnbull over 3 years ago

  • Tracker changed from Bug to Feature
  • Subject changed from Cannot control verbosity of masterhttp.log to Add support to control verbosity of masterhttp.log
  • Status changed from Needs More Information to Needs Decision
  • Assignee set to Nigel Kersten

Okay I checked there isn’t a way to change the verbosity of the logging.

It would be simple to add:

  1. Add an option in lib/puppet/defaults.rb for masterhttploglevel or something better named.
  2. Edit the httplog method in lib/puppet/network/http_server/webrick.rb.
  3. Then add a test in spec/unit/network/http/webrick_spec.rb

#4 Updated by armando migliaccio over 3 years ago

That’s great, thanks for your help!

Which release are you expecting this feature to be added?

Cheers, Armando

#5 Updated by Nigel Kersten over 3 years ago

  • Status changed from Needs Decision to Accepted
  • Assignee deleted (Nigel Kersten)
  • Target version set to 2.7.x

It will be targeted at Statler, the codename for our next non-maintenance release.

#6 Updated by Devon Peters almost 3 years ago

  • Target version changed from 2.7.x to 3.x

Also available in: Atom PDF