Commits

Anonymous committed e84dde0

avoid one bad practise of CACHE-290

  • Participants
  • Parent commits 2917b78

Comments (0)

Files changed (1)

src/java/com/opensymphony/oscache/base/Cache.java

 			EntryUpdateState removedState = (EntryUpdateState) updateStates.remove(key);
 			if (state != removedState) {
 				if (log.isErrorEnabled()) {
-					log.error("internal error: removed state [" + removedState + "] from key [" + key + "] whereas we expected [" + state + "]");
 					try {
-						throw new Exception("states not equal");
+						throw new Exception("OSCache: internal error: removed state [" + removedState + "] from key [" + key + "] whereas we expected [" + state + "]");
 					} catch (Exception e) {
-						// TODO Auto-generated catch block
-						e.printStackTrace();
+                        log.error(e);
 					}
 				}
 			}