Issue #4139 has been updated by Marcin Deranek.

I see similar behavior on CentOS5 x86_64 / puppet 0.25.5 / passenger 2.2.15 / 
REE 1.8.7 2010.02 although not exactly the same..
My clients do not have problems with logging when using --logdest parameter 
(autoflush=true), although puppetmaster has (running under passenger). I tested 
the following scenarios:

1. Added 'ARGV << "--logdest=/var/log/puppet/puppetmaster.log"' to config.ru
No output in log file at reasonable time (could be buffered somewhere as file 
is opened and logs do not end up in syslog)

2. Added 'ARGV << "--logdest=/var/log/puppet/puppetmaster.log"\nARGV << 
"--verbose"' to config.ru
Although I get an output in the file it's written in 4kB blocks.

3. Modified puppetmasterd.rb file to use /var/log/puppet/puppetmaster.log as 
default log destination.
Logs are written correctly without any problem.

In all cases I had autoflush=true. The bad thing about 1 & 2 is that during 
restart logs are gone (never written to disk).
----------------------------------------
Bug #4139: 'autoflush' ... doesn't
http://projects.puppetlabs.com/issues/4139

Author: eric sorenson
Status: Accepted
Priority: Normal
Assigned to: Nick Lewis
Category: 
Target version: 
Affected version: 0.25.5
Keywords: logging
Branch: 


Running puppetd with a file logdest writes buffered output with a rather large 
buffer, causing many of the admins who work with puppet at my site to become 
confused as to whether it's actually doing anything. I tried adding the 
'autoflush' parameter in puppet.conf but it doesn't seem to affect the 
behaviour.

Incidentally I see the same issue (autoflush is either ignored or does not 
function as advertised) running puppetmasterd. 


-- 
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