summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2Lib/ClientUtil.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2012-04-09 19:23:20 +0200
committerJose <jose@zeroc.com>2012-04-09 19:23:20 +0200
commite3f8d87217ee862529658091f3cd470b558fe0ed (patch)
treef04b0d1d2102ff6a6f8d3f8e7d7790079a8e2c86 /cpp/src/IcePatch2Lib/ClientUtil.cpp
parentICE-4803 - iceboxnet and unknown properties (diff)
downloadice-e3f8d87217ee862529658091f3cd470b558fe0ed.tar.bz2
ice-e3f8d87217ee862529658091f3cd470b558fe0ed.tar.xz
ice-e3f8d87217ee862529658091f3cd470b558fe0ed.zip
ICE-4583 - icepatch2client deprecate IcePatch2.Endpoints
Diffstat (limited to 'cpp/src/IcePatch2Lib/ClientUtil.cpp')
-rwxr-xr-xcpp/src/IcePatch2Lib/ClientUtil.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/IcePatch2Lib/ClientUtil.cpp b/cpp/src/IcePatch2Lib/ClientUtil.cpp
index d7351e947bd..5bf320b19bb 100755
--- a/cpp/src/IcePatch2Lib/ClientUtil.cpp
+++ b/cpp/src/IcePatch2Lib/ClientUtil.cpp
@@ -154,8 +154,7 @@ IcePatch2::Patcher::Patcher(const CommunicatorPtr& communicator, const PatcherFe
_remove(communicator->getProperties()->getPropertyAsIntWithDefault("IcePatch2.Remove", 1)),
_log(0)
{
- PropertiesPtr properties = communicator->getProperties();
-
+ const PropertiesPtr properties = communicator->getProperties();
const char* clientProxyProperty = "IcePatch2Client.Proxy";
std::string clientProxy = properties->getProperty(clientProxyProperty);
if(clientProxy.empty())
@@ -169,7 +168,9 @@ IcePatch2::Patcher::Patcher(const CommunicatorPtr& communicator, const PatcherFe
<< "' or `" << endpointsProperty << "'.";
throw os.str();
}
-
+ ostringstream os;
+ os << "The property " << endpointsProperty << " is deprecated, use " << clientProxyProperty << " instead.";
+ communicator->getLogger()->warning(os.str());
Identity id;
id.category = properties->getPropertyWithDefault("IcePatch2.InstanceName", "IcePatch2");
id.name = "server";