chef-boneyard / chef-client

Development repository for Chef Client cookbook
http://supermarket.chef.io/cookbooks/chef-client
Apache License 2.0
175 stars 421 forks source link

Windows scheduled task fails if Chef log directory doesn't exist #741

Open splatteredbits opened 2 years ago

splatteredbits commented 2 years ago

If the log directory specified in the client.rb file doesn't exist, the Chef client fails. Because there's no where to log, we get no indication anywhere that the task has failed.

Given this client.rb:

log_location 'C:\Windows\Logs\Chef/client.log'

and the C:\Windows\Logs\Chef directory doesn't exist, Chef client fails.