Skip to content

Commit

Permalink
remove logger lines
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jul 25, 2023
1 parent 7dfc694 commit 1d40053
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/main/java/io/cryostat/net/AgentClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ Future<MBeanMetrics> mbeanMetrics() {
}

Future<IRecordingDescriptor> startRecording(StartRecordingRequest req) {
logger.info("requesting recording start:\n{}", gson.toJson(req));
Future<HttpResponse<String>> f =
invoke(
HttpMethod.POST,
Expand All @@ -143,7 +142,6 @@ Future<IRecordingDescriptor> startRecording(StartRecordingRequest req) {
int statusCode = resp.statusCode();
if (HttpStatusCodeIdentifier.isSuccessCode(statusCode)) {
String body = resp.body();
logger.info("Received recording start response:\n{}", body);
return gson.fromJson(body, SerializableRecordingDescriptor.class)
.toJmcForm();
} else if (statusCode == 403) {
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/io/cryostat/net/AgentJFRService.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,31 +253,27 @@ public IRecordingDescriptor start(
QuantityConversionException, EventOptionException, EventTypeException {
StartRecordingRequest req;
String recordingName = recordingOptions.get("name").toString();
logger.info("recordingName: {}", recordingName);
long duration =
(Optional.ofNullable(
(ITypedQuantity)
recordingOptions.get(
RecordingOptionsBuilder.KEY_DURATION))
.orElse(UnitLookup.MILLISECOND.quantity(0)))
.longValueIn(UnitLookup.MILLISECOND);
logger.info("duration: {}", duration);
long maxSize =
(Optional.ofNullable(
(ITypedQuantity)
recordingOptions.get(
RecordingOptionsBuilder.KEY_MAX_SIZE))
.orElse(UnitLookup.BYTE.quantity(0)))
.longValueIn(UnitLookup.BYTE);
logger.info("maxSize: {}", maxSize);
long maxAge =
(Optional.ofNullable(
(ITypedQuantity)
recordingOptions.get(
RecordingOptionsBuilder.KEY_MAX_AGE))
.orElse(UnitLookup.MILLISECOND.quantity(0)))
.longValueIn(UnitLookup.MILLISECOND);
logger.info("maxAge: {}", maxAge);
if (preferredTemplateType.equals(TemplateType.CUSTOM)) {
req =
new StartRecordingRequest(
Expand Down

0 comments on commit 1d40053

Please sign in to comment.