From 74e55896bb8020a9bef3826339302dc45085238c Mon Sep 17 00:00:00 2001 From: Gunnar Date: Wed, 18 Dec 2024 09:29:25 +0100 Subject: [PATCH] better logging --- system/cache/policies/LFU.cfc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/cache/policies/LFU.cfc b/system/cache/policies/LFU.cfc index 70a8bd857..99cb8a2ea 100644 --- a/system/cache/policies/LFU.cfc +++ b/system/cache/policies/LFU.cfc @@ -26,6 +26,7 @@ component extends="coldbox.system.cache.policies.AbstractEvictionPolicy" { * Execute the policy */ void function execute(){ + var e = {}; // Get searchable index try { var index = getAssociatedCache() @@ -35,7 +36,7 @@ component extends="coldbox.system.cache.policies.AbstractEvictionPolicy" { // process evictions processEvictions( index ); } catch ( any e ) { - getLogger().error( "Error sorting via store indexer #e.message# #e.detail# #e.stackTrace#." ); + getLogger().error( "Error sorting via store indexer #e.message#", e ); } }