Skip to content

Commit

Permalink
log statement added
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamBien committed Oct 25, 2019
1 parent af080da commit 9e127ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/airhacks/wad/control/Substitutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ static Optional<String> extractKey(String stringWithPlaceholder) {

static String resolveWithEnvironment(String key) {
String value = System.getenv(key);
if (value == null) {
System.out.printf("Environment entry %s is not defined\n", key);
if (value != null) {
System.out.printf("%s%s=>%s%s\n", TerminalColors.FILE.value(), key, value, TerminalColors.RESET.value());
} else {
System.err.printf("Environment entry %s is not defined\n", key);
}
return value;
}
Expand Down

0 comments on commit 9e127ee

Please sign in to comment.