Feature #6607
Add support to control verbosity of masterhttp.log
| Status: | Accepted | Start date: | 03/05/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | logging | |||
| Target version: | 3.X | |||
| Affected Puppet version: | 0.25.5 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
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
Updated by James Turnbull about 1 year 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.
Updated by armando migliaccio about 1 year ago
Is there any information I can provide from my side?
Thanks
Updated by James Turnbull about 1 year 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:
- Add an option in lib/puppet/defaults.rb for masterhttploglevel or something better named.
- Edit the httplog method in lib/puppet/network/http_server/webrick.rb.
- Then add a test in spec/unit/network/http/webrick_spec.rb
Updated by armando migliaccio about 1 year ago
That’s great, thanks for your help!
Which release are you expecting this feature to be added?
Cheers, Armando
Updated by Nigel Kersten about 1 year 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.
Updated by Devon Peters 4 months ago
- Target version changed from 2.7.x to 3.X