Method: ChefApply::Startup#setup_error_handling
- Defined in:
- lib/chef_apply/startup.rb
#setup_error_handling ⇒ Object
143 144 145 146 147 148 149 150 151 152 |
# File 'lib/chef_apply/startup.rb', line 143 def setup_error_handling # In Ruby 2.5+ threads print out to stdout when they raise an exception. This is an agressive # attempt to ensure debugging information is not lost, but in our case it is not necessary # because we handle all the errors ourself. So we disable this to keep output clean. # See https://ruby-doc.org/core-2.5.0/Thread.html#method-c-report_on_exception # # We set this globally so that it applies to all threads we create - we never want any non-UI thread # to render error output to the terminal. Thread.report_on_exception = false end |