RFR: 1722: Add duration logging for RestRequestCache lock
Magnus Ihse Bursie
ihse at openjdk.org
Wed Dec 14 16:38:44 UTC 2022
On Wed, 14 Dec 2022 14:59:05 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
> This patch adds additional logging of durations for things that take time. In this case it's measuring how long it takes to get the lock before calling a remote REST API.
network/src/main/java/org/openjdk/skara/network/RestRequestCache.java line 228:
> 226: log.finer("Not using response cache for " + finalRequest + " (" + authId + ")");
> 227: Instant lastUpdate;
> 228: var beforeLock = Instant.now();
Should this not be accompanied with any logging?
-------------
PR: https://git.openjdk.org/skara/pull/1444
More information about the skara-dev
mailing list