Skip to content

Commit

Permalink
fix: enable EXHORT_DEBUG also from system property (#91)
Browse files Browse the repository at this point in the history
Signed-off-by: Zvi Grinberg <[email protected]>
  • Loading branch information
zvigrinberg authored Feb 13, 2024
1 parent ce7e0d5 commit 991ed10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/redhat/exhort/impl/ExhortApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private static void logExhortRequestId(HttpResponse response) {
}

public static boolean debugLoggingIsNeeded() {
return Boolean.parseBoolean(Objects.requireNonNullElse(System.getenv("EXHORT_DEBUG"), "false"));
return Boolean.parseBoolean(getStringValueEnvironment("EXHORT_DEBUG","false"));
}

@Override
Expand Down

0 comments on commit 991ed10

Please sign in to comment.