Skip to content

Commit

Permalink
Merge "Catch std exception in io_service run to print it." into R2.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jul 23, 2015
2 parents c7e3500 + 89f1200 commit 4dcc708
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/io/event_manager.cc
Expand Up @@ -58,6 +58,11 @@ void EventManager::RunWithExceptionHandling() {
EVENT_MANAGER_LOG_ERROR("Thrift exception caught : " <<
except.what() << "; ignoring");
continue;
} catch (std::exception &except) {
static std::string what = except.what();
EVENT_MANAGER_LOG_ERROR("Exception caught in io_service run : "
<< what);
exit(-1);
} catch(...) {
EVENT_MANAGER_LOG_ERROR("Exception caught in io_service run : "
"bailing out");
Expand Down

0 comments on commit 4dcc708

Please sign in to comment.