Log exception on streamServer::start()

This commit is contained in:
Marc Plano-Lesay 2016-06-15 20:24:31 +02:00
parent b64ae2f4c3
commit 879507c7e3

View file

@ -379,8 +379,9 @@ void StreamServer::start()
acceptor_ = make_shared<tcp::acceptor>(*io_service_, tcp::endpoint(tcp::v4(), settings_.port));
startAccept();
}
catch (const std::exception&)
catch (const std::exception& e)
{
logS(kLogNotice) << "StreamServer::start: " << e.what() << endl;
stop();
throw;
}