Skip to content

Commit

Permalink
Remove unnecessary Chef logs
Browse files Browse the repository at this point in the history
  • Loading branch information
komuta authored and kamaradclimber committed Feb 18, 2017
1 parent 280fba8 commit 99c4187
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions providers/pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,8 @@ def configure
if should_clear_apppool_schedules
@was_updated = true
is_new_recycle_at_time = true
clear_pool_schedule_cmd = "#{appcmd(node)} set config /section:applicationPools \"/-[name='#{new_resource.pool_name}'].recycling.periodicRestart.schedule\""
Chef::Log.debug(clear_pool_schedule_cmd)
execute "Recycling items" do
command clear_pool_schedule_cmd
command "#{appcmd(node)} set config /section:applicationPools \"/-[name='#{new_resource.pool_name}'].recycling.periodicRestart.schedule\""
end
end

Expand Down Expand Up @@ -286,7 +284,6 @@ def configure
execute "Configure IIS pool #{new_resource.pool_name}" do
command cmd
end
Chef::Log.debug(@cmd)
end

# Application Pool Identity Settings
Expand All @@ -305,7 +302,6 @@ def configure
@was_updated = true
cmd = "#{appcmd(node)} set config /section:applicationPools"
cmd << " \"/[name='#{new_resource.pool_name}'].processModel.identityType:#{new_resource.pool_identity}\""
Chef::Log.debug(cmd)
execute cmd.to_s do
command cmd
end
Expand Down

0 comments on commit 99c4187

Please sign in to comment.