diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-22 19:48:57 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-22 19:48:57 +0000 |
commit | 45bac68e2882ab30a45f501d3fc1bb35841fb0f6 (patch) | |
tree | d233fe083cbad7c163396d75d1604af444970fce /cpp | |
parent | Deprecated Glacier2.AddUserToAllowCategories (diff) | |
download | ice-45bac68e2882ab30a45f501d3fc1bb35841fb0f6.tar.bz2 ice-45bac68e2882ab30a45f501d3fc1bb35841fb0f6.tar.xz ice-45bac68e2882ab30a45f501d3fc1bb35841fb0f6.zip |
Added deprecated warnings
Diffstat (limited to 'cpp')
-rwxr-xr-x | cpp/src/Glacier2/FilterManager.cpp | 10 |
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 |