Skip to content

Commit

Permalink
focus only on first call, which errors, and use log instead of print
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Trettenero committed Dec 10, 2024
1 parent cc2bc1d commit af82554
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ public <R> R processRequest(

tags.put("request", resourceRequestName);
tags.put("scheme", MetacatContextManager.getContext().getScheme());
System.out.println("------------------------------------------------");
System.out.println(MetacatContextManager.getContext());
System.out.println(MetacatContextManager.getContext().getClientAppName());
System.out.println("------------------------------------------------");
log.info("------------------------------------------------");
log.info(MetacatContextManager.getContext().toString());
log.info(MetacatContextManager.getContext().getClientAppName());
log.info("------------------------------------------------");
tags.put("caller", MetacatContextManager.getContext().getClientAppName());
registry.counter(requestCounterId.withTags(tags)).increment();

Expand Down Expand Up @@ -249,10 +249,6 @@ public <R> R processRequest(
final long start = registry.clock().wallTime();
final Map<String, String> tags = Maps.newHashMap();
tags.put("request", resourceRequestName);
System.out.println("------------------------------------------------");
System.out.println(MetacatContextManager.getContext());
System.out.println(MetacatContextManager.getContext().getClientAppName());
System.out.println("------------------------------------------------");
tags.put("caller", MetacatContextManager.getContext().getClientAppName());
registry.counter(requestCounterId.withTags(tags)).increment();
try {
Expand Down

0 comments on commit af82554

Please sign in to comment.