Skip to content

Remove print statements #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ public static void exit(@Return Object response) {
}

byte[] bodyBytes = buffer.toByteArray();
System.out.printf("Captured response body: %s\n", new String(bodyBytes));
currentSpan.setAttribute(
HypertraceSemanticAttributes.HTTP_RESPONSE_BODY.getKey(), new String(bodyBytes));
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bodyBytes);
Expand All @@ -216,8 +215,6 @@ public static void exit(@Return Object response) {
// TODO log
e.printStackTrace();
}
} else {
System.out.println("\n\nIt is not HttpResponse #execute");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ static class TestAdvice {
public static void enter(
@Advice.Argument(0) ServletOutputStream servletOutputStream,
@Advice.Argument(1) BoundedByteArrayOutputStream buffer) {
System.out.println("adding to context");
ContextStore<ServletOutputStream, BoundedByteArrayOutputStream> contextStore =
InstrumentationContext.get(ServletOutputStream.class, BoundedByteArrayOutputStream.class);
contextStore.put(servletOutputStream, buffer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ public static void exit(
return;
}

System.out.println("Capturing readLine");
if (line == null) {
bufferSpanPair.captureBody(HypertraceSemanticAttributes.HTTP_REQUEST_BODY);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public TestBufferedReader(Reader in) {

@Override
public String readLine() throws IOException {
System.out.println("override readline");
return super.readLine();
}
}