adamdebreceni commented on a change in pull request #1057:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1057#discussion_r635306229



##########
File path: libminifi/src/Configure.cpp
##########
@@ -37,6 +37,10 @@ bool Configure::get(const std::string& key, std::string& 
value) const {
 
 bool Configure::get(const std::string& key, const std::string& alternate_key, 
std::string& value) const {
   if (get(key, value)) {
+    if (get(alternate_key)) {
+      const auto logger = logging::LoggerFactory<Configure>::getLogger();
+      logger->log_warn("Both the property '%s' and an alternate property '%s' 
are set. Using '%s'.", key, alternate_key, key);

Review comment:
       see `C2.md`:
   > Release 0.6.0: Please note that all c2 properties now exist as 
`nifi.c2.*`. If your configuration properties files contain the former naming 
convention of `c2.*`, we will continue to support that as an alternate key, but 
you are encouraged to switch your configuration options as soon as possible.
   
   although it does not say "deprecated" per se




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to