From 8ce7b7920617dc674c19320e939e03c5fea686b5 Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Thu, 4 Jul 2024 10:33:11 +0100 Subject: [PATCH] Log JS interpreter creation, for metrics tracking (#6305) --- src/js/interpreter_cache.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/interpreter_cache.h b/src/js/interpreter_cache.h index dee5c4c864b1..7230669b35da 100644 --- a/src/js/interpreter_cache.h +++ b/src/js/interpreter_cache.h @@ -74,9 +74,12 @@ namespace ccf::js auto it = lru.find(key); if (it == lru.end()) { - LOG_TRACE_FMT( - "Inserting new interpreter into cache, with key {}", key); it = lru.insert(key, make_interpreter(access)); + LOG_INFO_FMT( + "Constructed cached JS interpreter at key {}. Cache now " + "contains {} interpreters", + key, + lru.size()); } else {