Skip to content

Commit

Permalink
Destinations V2: change singleton log message level from warn to debug (
Browse files Browse the repository at this point in the history
  • Loading branch information
cynthiaxyin authored Jun 30, 2023
1 parent c33ea99 commit 98a0dad
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static DestinationConfig getInstance() {
public JsonNode getNodeValue(final String key) {
final JsonNode node = config.root.get(key);
if (node == null) {
LOGGER.warn("Cannot find node with key {} ", key);
LOGGER.debug("Cannot find node with key {} ", key);
}
return node;
}
Expand All @@ -56,7 +56,7 @@ public JsonNode getNodeValue(final String key) {
public String getTextValue(final String key) {
final JsonNode node = getNodeValue(key);
if (node == null || !node.isTextual()) {
LOGGER.warn("Cannot retrieve text value for node with key {}", key);
LOGGER.debug("Cannot retrieve text value for node with key {}", key);
return "";
}
return node.asText();
Expand All @@ -66,7 +66,7 @@ public String getTextValue(final String key) {
public Boolean getBooleanValue(final String key) {
final JsonNode node = getNodeValue(key);
if (node == null || !node.isBoolean()) {
LOGGER.warn("Cannot retrieve boolean value for node with key {}", key);
LOGGER.debug("Cannot retrieve boolean value for node with key {}", key);
return false;
}
return node.asBoolean();
Expand Down

0 comments on commit 98a0dad

Please sign in to comment.