[Boost-bugs] [Boost C++ Libraries] #10638: unhandled exception in async sink, created by init_from_settings

Subject: [Boost-bugs] [Boost C++ Libraries] #10638: unhandled exception in async sink, created by init_from_settings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-09 14:02:12


#10638: unhandled exception in async sink, created by init_from_settings
------------------------------+---------------------
 Reporter: pal666@… | Owner: andysem
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
  Version: Boost 1.56.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 when settings file describes async file sink pointing to inaccessible
 location, async sink will be created without exception handler and will
 throw unhandled exception from async thread, killing application. easiest
 way to fix it is to add exception suppressor to async sinks, created by
 init_from_settings.
 i.e.

 {{{
         else {
             p = init_formatter(boost::make_shared<
 sinks::asynchronous_sink< backend_t > >(backend), params,
 is_formatting_t());
             p -> set_exception_handler ( make_exception_suppressor ( ) );
         }
 }}}
 instead of
 {{{
         else
             p = init_formatter(boost::make_shared<
 sinks::asynchronous_sink< backend_t > >(backend), params,
 is_formatting_t());
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10638>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC