summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2007-02-26 23:48:49 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2007-02-26 23:48:49 +0000
commit72d25451e85add56fffe761eda70c26ddcc55caa (patch)
treef5d490eb403a6367ca34d39b065a8bceee3f4d0c /TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp
parent2a922cde379d5f974e40111f6dff6fa7921dc3c1 (diff)
downloadATCD-72d25451e85add56fffe761eda70c26ddcc55caa.tar.gz
ChangeLogTag:Mon Feb 26 23:27:03 UTC 2007 Ossama Othman <ossama_othman at symantec dot com>
Diffstat (limited to 'TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp')
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp b/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp
index 7cc94f9f523..72da99cd4aa 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp
@@ -2,6 +2,7 @@
#include "tao/PortableServer/ServantRetentionStrategyFactoryImpl.h"
#include "tao/PortableServer/ServantRetentionStrategy.h"
+#include "tao/debug.h"
#include "ace/Dynamic_Service.h"
#include "ace/Log_Msg.h"
@@ -40,9 +41,14 @@ namespace TAO
ACE_Dynamic_Service<ServantRetentionStrategyFactory>::instance (strategy_factory_name);
if (strategy_factory == 0)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) ERROR, Unable to get %s\n"),
- strategy_factory_name));
+ {
+ if (TAO_debug_level > 1)
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("(%P|%t) ERROR, Unable to get %s\n"),
+ strategy_factory_name));
+
+ return 0;
+ }
return strategy_factory->create (value);
}