From af825540bb45d053e4c1fa01918174cb9602bd0f Mon Sep 17 00:00:00 2001 From: Giorgio Trettenero Date: Tue, 10 Dec 2024 01:46:45 -0800 Subject: [PATCH] focus only on first call, which errors, and use log instead of print --- .../com/netflix/metacat/main/api/RequestWrapper.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/metacat-main/src/main/java/com/netflix/metacat/main/api/RequestWrapper.java b/metacat-main/src/main/java/com/netflix/metacat/main/api/RequestWrapper.java index 5ab189c8..304c9873 100644 --- a/metacat-main/src/main/java/com/netflix/metacat/main/api/RequestWrapper.java +++ b/metacat-main/src/main/java/com/netflix/metacat/main/api/RequestWrapper.java @@ -157,10 +157,10 @@ public 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(); @@ -249,10 +249,6 @@ public R processRequest( final long start = registry.clock().wallTime(); final Map 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 {