EHC ❯ Adding log information in Hibernate EhCache
-
Bug
-
Status: Closed
-
-
Resolution: Fixed
-
-
-
drb
-
Reporter: sourceforgetracker
-
September 21, 2009
-
0
-
Watchers: 0
-
September 22, 2009
-
September 22, 2009
Description
In net.sf.ehcache.hibernate.EhCache class, the get method logs debug information but not the put method.
So in the log trace, there is information about get but not put. We can not see when a object was put in the cache.
I suggest modify put method like this : public final void put(Object key, Object value) throws CacheException { try { if (LOG.isDebutEnabled()) { LOG.debug(“key: “ + key + “ value: “ + value); } Element element = new Element(key, value); cache.put(element); } catch (IllegalArgumentException e) { throw new CacheException(e); } catch (IllegalStateException e) { throw new CacheException(e); } }
Regards, Arnaud BRUNET Sourceforge Ticket ID: 2061030 - Opened By: gronono - 20 Aug 2008 00:15 UTC
Re-opening so that I can properly close out these issues and have correct Resolution status in Jira