Skip to content

Commit

Permalink
Revert "[WIP] Add more logging"
Browse files Browse the repository at this point in the history
This reverts commit 51db71e.
  • Loading branch information
Akirathan committed Mar 5, 2025
1 parent 51db71e commit c540239
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ private HttpRequest buildRequest(RequestConfig requestConfig, List<LogJob> messa
assert requestConfig != null
: "The request configuration must be set before building a request.";
var payload = buildPayload(messages);
LOGGER.warning(() -> "Constructed HttpRequest with payload " + payload + ". Requestconfig: " + requestConfig);
return HttpRequest.newBuilder()
.uri(requestConfig.apiUri())
.header("Authorization", "Bearer " + requestConfig.accessToken())
Expand Down Expand Up @@ -220,7 +219,7 @@ private void sendLogRequest(HttpRequest request, int retryCount) throws RequestF
}
} catch (RequestFailureException e) {
if (retryCount < 0) {
LOGGER.severe("Failed to send log messages after retrying: " + e.getMessage() + ". The request was: " + request);
LOGGER.severe("Failed to send log messages after retrying: " + e.getMessage());
throw e;
} else {
LOGGER.warning("Exception when sending log messages: " + e.getMessage() + ". Retrying...");
Expand Down

0 comments on commit c540239

Please sign in to comment.