Skip to content

Commit

Permalink
assign to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Trettenero committed Dec 11, 2024
1 parent af82554 commit cb98913
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ public <R> R processRequest(
log.info(MetacatContextManager.getContext().toString());
log.info(MetacatContextManager.getContext().getClientAppName());
log.info("------------------------------------------------");
tags.put("caller", MetacatContextManager.getContext().getClientAppName());
String clientAppName = MetacatContextManager.getContext().getClientAppName();
if (clientAppName == null) {
clientAppName = "I SET IT NULL";
}
tags.put("caller", clientAppName);
registry.counter(requestCounterId.withTags(tags)).increment();

try {
Expand Down

0 comments on commit cb98913

Please sign in to comment.