Skip to content

Commit

Permalink
[#44] Log warning when elasticsearch service URL does not include por…
Browse files Browse the repository at this point in the history
…t number.
  • Loading branch information
korydraughn committed Mar 4, 2024
1 parent 534cba5 commit bd62a2d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libirods_rule_engine_plugin-elasticsearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ namespace
continue;
}

if (!url_parse_result->has_port()) {
rodsLog(LOG_WARNING,
"%s: elasticsearch service URL [%s] must include a port number. without it, communication may "
"fail.",
__func__,
host.c_str());
}

namespace net = boost::asio;
using tcp = net::ip::tcp;

Expand Down

0 comments on commit bd62a2d

Please sign in to comment.