Issue #9435 has been updated by Josh Cooper.

Status changed from In Topic Branch Pending Merge to Merged - Pending Release
% Done changed from 0 to 100

This was merged into 2.7.x in 
https://github.com/puppetlabs/puppet/commit/8c2dd75b5dc5e36d3f9697b049bd2427e1dd1351
----------------------------------------
Bug #9435: Log destinations are broken on Windows
https://projects.puppetlabs.com/issues/9435

Author: Josh Cooper
Status: Merged - Pending Release
Priority: Normal
Assignee: Josh Cooper
Category: windows
Target version: 2.7.x
Affected Puppet version: development
Keywords: 
Branch: 


If no logging destination is set, puppet agent will attempt to add the syslog 
log destination, but this feature is not available on Windows and this 
generates an error (though puppet continues running):

<pre>
c:/ruby187/lib/ruby/site_ruby/1.8/puppet/util/log/destinations.rb:7:in 
`initialize'
c:/ruby187/lib/ruby/site_ruby/1.8/puppet/util/log.rb:129:in `new'
c:/ruby187/lib/ruby/site_ruby/1.8/puppet/util/log.rb:129:in `newdestination'
c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:380:in 
`setup_logs'
c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:422:in `setup'
c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:304:in `run'
c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:410:in `hook'
c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:304:in `run'
c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:401:in `exit_on_fail'
c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:304:in `run'
c:/ruby187/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute'
c:/ruby187/bin/puppet:4
</pre>

If a file destination is specified, e.g. puppet agent --logdest=c:\log.txt, 
puppet doesn't log to the file, because the file log destination only "match"es 
paths that start with '/':

<pre>
Puppet::Util::Log.newdesttype :file do
  match(/^\//)
</pre>


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