summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2019-04-15 09:32:52 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2019-04-15 09:32:52 +0200
commitd8f1f9cff24310895b4d33cae747d09e561457c1 (patch)
tree006eb4d704b2cc3e45010b290b1563f311cea1a2
parentd9a9912cb8130109784d908771626f0856f4d83a (diff)
downloadATCD-d8f1f9cff24310895b4d33cae747d09e561457c1.tar.gz
Enhanced logging and only log when debugging is enabled
* TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp:
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp24
1 files changed, 15 insertions, 9 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp b/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp
index cc88f060de7..60976e69dc6 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp
@@ -186,8 +186,7 @@ ImR_DSI_ResponseHandler::send_ior (const char *pior)
{
ior += this->key_str_.in();
- CORBA::Object_var forward_obj =
- this->orb_->string_to_object (ior.c_str ());
+ CORBA::Object_var forward_obj = this->orb_->string_to_object (ior.c_str ());
if (!CORBA::is_nil (forward_obj.in ()))
{
@@ -197,16 +196,23 @@ ImR_DSI_ResponseHandler::send_ior (const char *pior)
}
else
{
- ORBSVCS_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) ImR_DSI_ResponseHandler::send_ior (): Forward_to ")
- ACE_TEXT ("reference is nil\n")));
+ if (ImR_Locator_i::debug () > 1)
+ {
+ ORBSVCS_ERROR ((LM_ERROR,
+ ACE_TEXT ("(%P|%t) ImR_DSI_ResponseHandler::send_ior (): Forward_to ")
+ ACE_TEXT ("reference is nil for key <%C> server_name <%C>\n"),
+ key_str_.in (), server_name_.in ()));
+ }
}
}
else
{
- ORBSVCS_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) ImR_DSI_ResponseHandler::send_ior (): Invalid corbaloc ior for key <%C> server_name <%C> IOR <%C>\n"),
- key_str_.in (), server_name_.in (), pior));
+ if (ImR_Locator_i::debug () > 1)
+ {
+ ORBSVCS_ERROR ((LM_ERROR,
+ ACE_TEXT ("(%P|%t) ImR_DSI_ResponseHandler::send_ior (): Invalid corbaloc ior for key <%C> server_name <%C> IOR <%C>\n"),
+ key_str_.in (), server_name_.in (), pior));
+ }
}
this->invoke_excep_i (new CORBA::OBJECT_NOT_EXIST
@@ -226,7 +232,7 @@ ImR_DSI_ResponseHandler::invoke_excep_i (CORBA::Exception *ex)
void
ImR_DSI_ResponseHandler::send_exception (CORBA::Exception *ex)
{
- //discard the exception, always throw a transient:
+ // Discard the exception, always throw a transient:
delete ex;
this->invoke_excep_i (new CORBA::TRANSIENT