Commit 9a17e83a authored by Pavel Vainerman's avatar Pavel Vainerman

(unet2): убрал лишнее в выводе ошибок

parent 887c6dc6
......@@ -53,15 +53,15 @@ cache_init_ok(false)
catch( std::exception& e )
{
ostringstream s;
s << "Could not create connection for " << s_host << ":" << port << " err: " << e.what();
dlog[Debug::CRIT] << myname << "(init): " << s.str() << std::endl;
s << myname << ": " << e.what();
dlog[Debug::CRIT] << s.str() << std::endl;
throw SystemError(s.str());
}
catch( ... )
{
ostringstream s;
s << "Could not create connection for " << s_host << ":" << port;
dlog[Debug::CRIT] << myname << "(init): " << s.str() << std::endl;
s << myname << ": catch...";
dlog[Debug::CRIT] << s.str() << std::endl;
throw SystemError(s.str());
}
......
......@@ -45,15 +45,15 @@ s_thr(0)
catch( std::exception& e )
{
ostringstream s;
s << "Could not create broadcast connection for " << s_host << ":" << port << " err: " << e.what();
dlog[Debug::CRIT] << myname << "(init): " << s.str() << std::endl;
s << myname << ": " << e.what();
dlog[Debug::CRIT] << s.str() << std::endl;
throw SystemError(s.str());
}
catch( ... )
{
ostringstream s;
s << "Could not create connection for " << s_host << ":" << port;
dlog[Debug::CRIT] << myname << "(init): " << s.str() << std::endl;
s << myname << ": catch...";
dlog[Debug::CRIT] << s.str() << std::endl;
throw SystemError(s.str());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment