Skip to content

Commit

Permalink
fix: debug log upload url (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomershafir authored Sep 20, 2023
1 parent 2bf3581 commit c18ef69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private void uploadSnapshot(final Snapshot snapshot) throws InterruptedException
final RequestBody requestBody;
if (config.format == Format.JFR) {
byte[] labels = snapshot.labels.toByteArray();
logger.log(Logger.Level.DEBUG, "Upload attempt %d. %s %s JFR: %s, labels: %s", tries,
logger.log(Logger.Level.DEBUG, "Upload attempt %d to %s. %s %s JFR: %s, labels: %s", tries, url.toString(),
snapshot.started.toString(), snapshot.ended.toString(), snapshot.data.length, labels.length);
MultipartBody.Builder bodyBuilder = new MultipartBody.Builder()
.setType(MultipartBody.FORM);
Expand All @@ -71,7 +71,7 @@ private void uploadSnapshot(final Snapshot snapshot) throws InterruptedException
}
requestBody = bodyBuilder.build();
} else {
logger.log(Logger.Level.DEBUG, "Upload attempt %d. collapsed: %s", tries, snapshot.data.length);
logger.log(Logger.Level.DEBUG, "Upload attempt %d to %s. collapsed: %s", tries, url.toString(), snapshot.data.length);
requestBody = RequestBody.create(snapshot.data);
}
Request.Builder request = new Request.Builder()
Expand Down

0 comments on commit c18ef69

Please sign in to comment.