Skip to content

Commit

Permalink
Add log warning for invalid env variable contents
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Grassi <[email protected]>
  • Loading branch information
joaopgrassi committed Feb 7, 2024
1 parent 922db5d commit 7c1fdfa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Resource EnvironmentResourceDetector::detect() {
for (const auto& pair : StringUtil::splitToken(attributes_str, ",")) {
const auto keyValue = StringUtil::splitToken(pair, "=");
if (keyValue.size() != 2) {
ENVOY_LOG(warn, "Invalid resource format from the environment, invalid text: {}.", pair);
continue;
}

Expand Down

0 comments on commit 7c1fdfa

Please sign in to comment.