diff options
author | thrall <thrall@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-07-15 18:22:15 +0000 |
---|---|---|
committer | thrall <thrall@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-07-15 18:22:15 +0000 |
commit | 37da3176284972ead128c687812dbdf99177f527 (patch) | |
tree | e792aa0311be0de4ca618bdb30ec2d1156b1231b | |
parent | 559713a5d1a0cbe65ebc27d7ffcb3e4f5fb364a1 (diff) | |
download | ATCD-37da3176284972ead128c687812dbdf99177f527.tar.gz |
More informative debug messages
-rw-r--r-- | TAO/orbsvcs/tests/EC_Config/Test.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/TAO/orbsvcs/tests/EC_Config/Test.cpp b/TAO/orbsvcs/tests/EC_Config/Test.cpp index cddb1b5eccd..6a7d9ac0737 100644 --- a/TAO/orbsvcs/tests/EC_Config/Test.cpp +++ b/TAO/orbsvcs/tests/EC_Config/Test.cpp @@ -19,7 +19,7 @@ typedef ACE_Strong_Bound_Ptr<Test_Config_Set,ACE_Null_Mutex> TCFG_SET_SPTR; //NOTE: Read from a formatted file rather than hardcode the configuration. Check ACE_XML. int -main (int argc, char** argv) +main (int argc, char *argv[]) { int retval = 0; @@ -50,15 +50,19 @@ main (int argc, char** argv) ACEXML_TRY_CHECK; // TODO configure according to parsed XML + //ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Finished parsing\n"))); } ACEXML_CATCH (ACEXML_SAXException, ex) { - ACE_UNUSED_ARG (ex); - ACE_DEBUG ((LM_ERROR, ACE_TEXT ("Exception occurred. Exiting...\n"))); + //ACE_UNUSED_ARG (ex); + ACE_DEBUG ((LM_ERROR, ACE_TEXT ("Exception occurred: %s. Exiting...\n"), + ex.message())); return 1; } ACEXML_ENDTRY; + ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Finished successfully\n"))); + #if 0 ConfigFactory::Default_Config_Factory fact; fact.init(argc,argv); |