Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool4 / server_main.cpp
blob4131a591654e185cef41092cf99b416619a81e4d
1 #include "ServerApp.h"
2 #include "ace/Log_Msg.h"
3 #include "tao/Exception.h"
6 int
7 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
9 ACE_LOG_MSG->priority_mask(LM_TRACE |
10 LM_DEBUG |
11 LM_INFO |
12 LM_NOTICE |
13 LM_WARNING |
14 LM_ERROR |
15 LM_CRITICAL |
16 LM_ALERT |
17 LM_EMERGENCY,
18 ACE_Log_Msg::PROCESS);
20 ServerApp app;
22 try
24 int ret = app.run(argc,argv);
25 return ret == 1 ? 0 : ret;
27 catch (const CORBA::Exception& ex)
29 ex._tao_print_exception ("Caught exception:");
31 catch (...)
33 ACE_ERROR((LM_ERROR,
34 "(%P|%t) Unknown (...) exception caught in main() "
35 "for ServerApp\n"));
38 return 1;