Commit fa6d6a5f authored by Pavel Vainerman's avatar Pavel Vainerman

(SM): исправил ошибку с выводом логов в unideb вместо dlog

parent 46cf40d7
...@@ -44,19 +44,19 @@ int main(int argc, const char **argv) ...@@ -44,19 +44,19 @@ int main(int argc, const char **argv)
} }
catch( SystemError& err ) catch( SystemError& err )
{ {
unideb[Debug::CRIT] << "(smemory): " << err << endl; dlog[Debug::CRIT] << "(smemory): " << err << endl;
} }
catch( Exception& ex ) catch( Exception& ex )
{ {
unideb[Debug::CRIT] << "(smemory): " << ex << endl; dlog[Debug::CRIT] << "(smemory): " << ex << endl;
} }
catch( std::exception& e ) catch( std::exception& e )
{ {
unideb[Debug::CRIT] << "(smemory): " << e.what() << endl; dlog[Debug::CRIT] << "(smemory): " << e.what() << endl;
} }
catch(...) catch(...)
{ {
unideb[Debug::CRIT] << "(smemory): catch(...)" << endl; dlog[Debug::CRIT] << "(smemory): catch(...)" << endl;
} }
return 1; return 1;
......
...@@ -58,15 +58,15 @@ int main(int argc, const char **argv) ...@@ -58,15 +58,15 @@ int main(int argc, const char **argv)
} }
catch(SystemError& err) catch(SystemError& err)
{ {
unideb[Debug::CRIT] << "(uninetwork): " << err << endl; dlog[Debug::CRIT] << "(uninetwork): " << err << endl;
} }
catch(Exception& ex) catch(Exception& ex)
{ {
unideb[Debug::CRIT] << "(uninetwork): " << ex << endl; dlog[Debug::CRIT] << "(uninetwork): " << ex << endl;
} }
catch(...) catch(...)
{ {
unideb[Debug::CRIT] << "(uninetwork): catch(...)" << endl; dlog[Debug::CRIT] << "(uninetwork): catch(...)" << endl;
} }
while( waitpid(-1, 0, 0) > 0 ); while( waitpid(-1, 0, 0) > 0 );
......
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