summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ReferenceFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/ReferenceFactory.cpp')
-rw-r--r--cpp/src/Ice/ReferenceFactory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/Ice/ReferenceFactory.cpp b/cpp/src/Ice/ReferenceFactory.cpp
index b5266668098..b3b5e404e62 100644
--- a/cpp/src/Ice/ReferenceFactory.cpp
+++ b/cpp/src/Ice/ReferenceFactory.cpp
@@ -18,6 +18,7 @@
#include <Ice/LocatorInfo.h>
#include <Ice/LoggerUtil.h>
#include <Ice/BasicStream.h>
+#include <Ice/Properties.h>
#include <IceUtil/StringUtil.h>
using namespace std;
@@ -446,7 +447,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("Ice.Warn.Endpoints", 1) > 0)
{
Warning out(_instance->logger());
out << "Proxy contains unknown endpoints:";