Skip to content

Commit

Permalink
[?] Do not print log message unless the HTTP request actually fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Feb 21, 2024
1 parent 11e29fb commit f0a22e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libirods_rule_engine_plugin-elasticsearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ namespace
if (!res.has_value()) {
rodsLog(LOG_ERROR, "%s: No response from elasticsearch host.", __func__);
}
else {
else if (res->result_int() / 100 != 2) {
rodsLog(LOG_ERROR,
"%s: Error sending request to elasticsearch host. [http_status_code=[%d]]",
__func__,
Expand All @@ -401,7 +401,7 @@ namespace
if (!res.has_value()) {
rodsLog(LOG_ERROR, "%s: No response from elasticsearch host.", __func__);
}
else {
else if (res->result_int() / 100 != 2) {
rodsLog(LOG_ERROR,
"%s: Error sending request to elasticsearch host. [http_status_code=[%d]]",
__func__,
Expand Down

0 comments on commit f0a22e1

Please sign in to comment.