fgerlits commented on code in PR #1753:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1753#discussion_r1560580278
##########
extensions/standard-processors/processors/ListenTCP.cpp:
##########
@@ -28,7 +28,13 @@ void ListenTCP::initialize() {
}
void ListenTCP::onSchedule(core::ProcessContext& context,
core::ProcessSessionFactory&) {
- startTcpServer(context, SSLContextService, ClientAuth);
+ auto delimiter_str = context.getProperty(MessageDelimiter).value_or("\n");
+ if (delimiter_str.empty()) {
+ logger_->log_warn("{} cannot be an empty string", MessageDelimiter.name);
Review Comment:
I think we should tell the user what is happening:
```suggestion
logger_->log_warn("{} cannot be an empty string, using \\n as the
delimiter", MessageDelimiter.name);
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]