diff options
author | danielsdeleo <dan@getchef.com> | 2014-04-23 13:37:34 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2014-04-24 09:49:52 -0700 |
commit | a331b0d174292d01ae118885678946661ad7a218 (patch) | |
tree | 0c998b1699bb2fa83fe00adb108bbfa6eca6148d | |
parent | 8931e21289f603669658f903de9018aa101b3a4f (diff) | |
download | chef-a331b0d174292d01ae118885678946661ad7a218.tar.gz |
Configure correct logger to fix logger trap context warnings
-rw-r--r-- | spec/unit/application/client_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb index b3e9858a64..3bc6b97d3d 100644 --- a/spec/unit/application/client_spec.rb +++ b/spec/unit/application/client_spec.rb @@ -134,6 +134,8 @@ describe Chef::Application::Client, "run_application", :unix_only do Chef::Config[:daemonize] = true @pipe = IO.pipe @app = Chef::Application::Client.new + # Default logger doesn't work correctly when logging from a trap handler. + @app.configure_logging Chef::Daemon.stub(:daemonize).and_return(true) @app.stub(:run_chef_client) do @pipe[1].puts 'started' |