From 879507c7e320ebec8e4cd613c60a79e91b7cadb0 Mon Sep 17 00:00:00 2001 From: Marc Plano-Lesay Date: Wed, 15 Jun 2016 20:24:31 +0200 Subject: [PATCH] Log exception on streamServer::start() --- server/streamServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/streamServer.cpp b/server/streamServer.cpp index d93eca19..9022b05b 100644 --- a/server/streamServer.cpp +++ b/server/streamServer.cpp @@ -379,8 +379,9 @@ void StreamServer::start() acceptor_ = make_shared(*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; }