Issue #9030 has been updated by Alex W.

Michael Stahnke wrote:
> I am unable to reduce the logging verbosity of puppet dashboard.  The 
> production.log file contains all the SQL queries, which is non-desired for a 
> production deployment.

I wrote a workaround I'd like to share. Change the logging setting in your 
**`puppet-dashboard/config/environments/production.rb`** to:

<pre>
# See everything in the log (default is :info)
# config.log_level = :debug
 
# Use a different logger for distributed setups
#config.logger = SyslogLogger.new
# You can use the original line from puppet-dashboard/config/environment.rb 
here too.
config.logger = Logger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}.log")
config.logger.level = Logger::INFO
</pre>

Ruby's log rotation isn't used in this code, because `logrotate` does that job 
in my setup. (`puppet-dashboard/ext/packaging/debian/logrotate`)
----------------------------------------
Bug #9030: Unable to reduce logging level in Dashboard
https://projects.puppetlabs.com/issues/9030

Author: Michael Stahnke
Status: Duplicate
Priority: High
Assignee: Pieter van de Bruggen
Category: 
Target version: 1.2
Keywords: 
Branch: 
Affected URL: 
Affected Dashboard version: 1.2rc6


I am unable to reduce the logging verbosity of puppet dashboard.  The 
production.log file contains all the SQL queries, which is non-desired for a 
production deployment. 


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to