summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp
diff options
context:
space:
mode:
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);
}