summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-11-22 19:48:57 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-11-22 19:48:57 +0000
commit45bac68e2882ab30a45f501d3fc1bb35841fb0f6 (patch)
treed233fe083cbad7c163396d75d1604af444970fce /cpp
parentDeprecated Glacier2.AddUserToAllowCategories (diff)
downloadice-45bac68e2882ab30a45f501d3fc1bb35841fb0f6.tar.bz2
ice-45bac68e2882ab30a45f501d3fc1bb35841fb0f6.tar.xz
ice-45bac68e2882ab30a45f501d3fc1bb35841fb0f6.zip
Added deprecated warnings
Diffstat (limited to 'cpp')
-rwxr-xr-xcpp/src/Glacier2/FilterManager.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/cpp/src/Glacier2/FilterManager.cpp b/cpp/src/Glacier2/FilterManager.cpp
index 1482adfa625..0ed86eab96a 100755
--- a/cpp/src/Glacier2/FilterManager.cpp
+++ b/cpp/src/Glacier2/FilterManager.cpp
@@ -8,6 +8,7 @@
// **********************************************************************
#include <Ice/Communicator.h>
+#include <Ice/Logger.h>
#include <Ice/Properties.h>
#include <Glacier2/FilterManager.h>
#include <Glacier2/FilterI.h>
@@ -236,7 +237,12 @@ Glacier2::FilterManager::create(const CommunicatorPtr& communicator, const Objec
// and superseded by Glacier2.Filter.Category.Accept.
//
string allow = props->getProperty("Glacier2.AllowCategories");
- if(allow.empty())
+ if(!allow.empty())
+ {
+ communicator->getLogger()->warning(
+ "Glacier2.AllowCategories has been deprecated, use Glacier2.Filter.Category.Accept instead.");
+ }
+ else
{
allow = props->getProperty("Glacier2.Filter.Category.Accept");
}
@@ -253,6 +259,8 @@ Glacier2::FilterManager::create(const CommunicatorPtr& communicator, const Objec
int addUserMode;
if(!props->getProperty("Glacier2.AddUserToAllowCategories").empty())
{
+ communicator->getLogger()->warning(
+ "Glacier2.AddUserToAllowCategories has been deprecated, use Glacier2.Filter.Category.AcceptUser instead.");
addUserMode = props->getPropertyAsInt("Glacier2.AddUserToAllowCategories");
}
else