Commit 43aa1763 authored by Pavel Vainerman's avatar Pavel Vainerman

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

parent ceb6b442
...@@ -53,15 +53,15 @@ cache_init_ok(false) ...@@ -53,15 +53,15 @@ cache_init_ok(false)
catch( std::exception& e ) catch( std::exception& e )
{ {
ostringstream s; ostringstream s;
s << "Could not create connection for " << s_host << ":" << port << " err: " << e.what(); s << myname << ": " << e.what();
dlog[Debug::CRIT] << myname << "(init): " << s.str() << std::endl; dlog[Debug::CRIT] << s.str() << std::endl;
throw SystemError(s.str()); throw SystemError(s.str());
} }
catch( ... ) catch( ... )
{ {
ostringstream s; ostringstream s;
s << "Could not create connection for " << s_host << ":" << port; s << myname << ": catch...";
dlog[Debug::CRIT] << myname << "(init): " << s.str() << std::endl; dlog[Debug::CRIT] << s.str() << std::endl;
throw SystemError(s.str()); throw SystemError(s.str());
} }
......
...@@ -45,15 +45,15 @@ s_thr(0) ...@@ -45,15 +45,15 @@ s_thr(0)
catch( std::exception& e ) catch( std::exception& e )
{ {
ostringstream s; ostringstream s;
s << "Could not create broadcast connection for " << s_host << ":" << port << " err: " << e.what(); s << myname << ": " << e.what();
dlog[Debug::CRIT] << myname << "(init): " << s.str() << std::endl; dlog[Debug::CRIT] << s.str() << std::endl;
throw SystemError(s.str()); throw SystemError(s.str());
} }
catch( ... ) catch( ... )
{ {
ostringstream s; ostringstream s;
s << "Could not create connection for " << s_host << ":" << port; s << myname << ": catch...";
dlog[Debug::CRIT] << myname << "(init): " << s.str() << std::endl; dlog[Debug::CRIT] << s.str() << std::endl;
throw SystemError(s.str()); 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