diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-07-11 17:51:29 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-07-11 17:51:29 +0000 |
commit | 6276e8a9b98bd8b5f5f2de7df845b06c084079c8 (patch) | |
tree | 4a64ace04362ca1974db424fd2014684039b8e33 /cppe/src/IceE/ReferenceFactory.cpp | |
parent | Fixed warning (diff) | |
download | ice-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.cpp | 4 |
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:"; |