summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvishal <vishal@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-30 04:53:22 +0000
committervishal <vishal@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-30 04:53:22 +0000
commitaa92b0fee953fabbadfb1e8ab1fdaec4bd0a840b (patch)
treeef87f081d1127349b21e7b14a283bd651b5b2783
parent78dca9eea4a632ed01009124bf578e9f5f07a0f1 (diff)
downloadATCD-aa92b0fee953fabbadfb1e8ab1fdaec4bd0a840b.tar.gz
*** empty log message ***
-rw-r--r--TAO/ChangeLog-99c3
-rw-r--r--TAO/tao/Connect.cpp11
2 files changed, 8 insertions, 6 deletions
diff --git a/TAO/ChangeLog-99c b/TAO/ChangeLog-99c
index f214067bf0a..a39a1f2a31f 100644
--- a/TAO/ChangeLog-99c
+++ b/TAO/ChangeLog-99c
@@ -3,7 +3,8 @@ Mon Mar 29 22:42:31 1999 Vishal Kachroo <vishal@merengue.cs.wustl.edu>
* tao/Connect.cpp : Used CORBA::string_dup () in handle_message ().
Un-owned memory was being assigned to an auto-ptr, which caused
the INS test to fail on NT.
-
+ Also added a check for TAO_debug_level.
+
* tests/InterOp-Naming/InterOp_test.cpp (main): Removed some Debug
statements.
diff --git a/TAO/tao/Connect.cpp b/TAO/tao/Connect.cpp
index b559230f6a4..ac2c8d7d3e2 100644
--- a/TAO/tao/Connect.cpp
+++ b/TAO/tao/Connect.cpp
@@ -274,12 +274,13 @@ TAO_Server_Connection_Handler::handle_message (TAO_InputCDR &input,
object_id = CORBA::string_dup ((char *) request.object_key ().get_buffer ());
object_id [request.object_key ().length ()] = '\0';
- ACE_DEBUG ((LM_DEBUG,
- "Simple Object key %s. Doing the Table Lookup ...\n",
- object_id.in ()));
-
+ if (TAO_debug_level > 0)
+ ACE_DEBUG ((LM_DEBUG,
+ "Simple Object key %s. Doing the Table Lookup ...\n",
+ object_id.in ()));
+
CORBA::Object_ptr object_reference;
-
+
// Do the Table Lookup.
int status =
this->orb_core_->orb ()->_tao_find_in_IOR_table (object_id.in (),