arpadboda commented on a change in pull request #710: MINIFICPP - 1110,1111 -
PublishKafka, OPC processors should config and
URL: https://github.com/apache/nifi-minifi-cpp/pull/710#discussion_r369645408
##########
File path: extensions/standard-processors/processors/LogAttribute.cpp
##########
@@ -95,7 +95,7 @@ void LogAttribute::onSchedule(const
std::shared_ptr<core::ProcessContext> &conte
// in configuration. In future releases we can add that exception handling
there.
if (!flowsToLog.getValue().validate("Validating FlowFilesToLog").valid())
throw Exception(PROCESS_SCHEDULE_EXCEPTION, "Invalid value for flowfiles
to log: " + flowsToLog.getValue().to_string());
- flowfiles_to_log_ = flowsToLog.getValue();
+ flowfiles_to_log_ = static_cast<uint64_t>(flowsToLog.getValue());
Review comment:
There is a getProperty template to get typed value, so I think the following
does the job:
```
getProperty(FlowFilesToLog.getName(), flowfiles_to_log_);
```
Didn't try though
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services