summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/ReferenceFactory.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-07-11 17:51:29 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-07-11 17:51:29 +0000
commit6276e8a9b98bd8b5f5f2de7df845b06c084079c8 (patch)
tree4a64ace04362ca1974db424fd2014684039b8e33 /cppe/src/IceE/ReferenceFactory.cpp
parentFixed warning (diff)
downloadice-6276e8a9b98bd8b5f5f2de7df845b06c084079c8.tar.bz2
ice-6276e8a9b98bd8b5f5f2de7df845b06c084079c8.tar.xz
ice-6276e8a9b98bd8b5f5f2de7df845b06c084079c8.zip
Added IceE.Warn.Endpoints
Diffstat (limited to 'cppe/src/IceE/ReferenceFactory.cpp')
-rw-r--r--cppe/src/IceE/ReferenceFactory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cppe/src/IceE/ReferenceFactory.cpp b/cppe/src/IceE/ReferenceFactory.cpp
index 1a2af0fe1f9..5efcc179427 100644
--- a/cppe/src/IceE/ReferenceFactory.cpp
+++ b/cppe/src/IceE/ReferenceFactory.cpp
@@ -21,6 +21,7 @@
#include <IceE/BasicStream.h>
#include <IceE/StringUtil.h>
#include <IceE/LoggerUtil.h>
+#include <IceE/Properties.h>
using namespace std;
using namespace Ice;
@@ -440,7 +441,8 @@ IceInternal::ReferenceFactory::create(const string& str)
ex.str = unknownEndpoints.front();
throw ex;
}
- else if(unknownEndpoints.size() != 0)
+ else if(unknownEndpoints.size() != 0 &&
+ _instance->properties()->getPropertyAsIntWithDefault("IceE.Warn.Endpoints", 1) > 0)
{
Warning out(_instance->logger());
out << "Proxy contains unknown endpoints:";