Skip to content

Commit

Permalink
fix: change meaning of log message
Browse files Browse the repository at this point in the history
- In order to distinguish between ex-requiest-id and ex-client-trace-id

Signed-off-by: Zvi Grinberg <[email protected]>
  • Loading branch information
zvigrinberg committed Feb 8, 2024
1 parent d1322a0 commit f453223
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 @@ -313,7 +313,7 @@ private AnalysisReport getAnalysisReportFromResponse(HttpResponse<String> respon

private static void logExhortRequestId(HttpResponse response) {
Optional<String> headerExRequestId = response.headers().allValues(EXHORT_REQUEST_ID_HEADER_NAME).stream().findFirst();
headerExRequestId.ifPresent(value -> LOG.info(String.format("Unique Identifier associated with this request - ex-request-id= : %s", value)));
headerExRequestId.ifPresent(value -> LOG.info(String.format("Unique Identifier associated with this request ( Received from Exhort Backend ) - ex-request-id= : %s", value)));
}

public static boolean debugLoggingIsNeeded() {
Expand Down

0 comments on commit f453223

Please sign in to comment.