r7012 - dumbhippo/trunk/server/src/com/dumbhippo/dm



Author: otaylor
Date: 2007-12-10 19:48:01 -0600 (Mon, 10 Dec 2007)
New Revision: 7012

Modified:
   dumbhippo/trunk/server/src/com/dumbhippo/dm/ChangeNotification.java
Log:
Log the feed timestamp when invalidating

Modified: dumbhippo/trunk/server/src/com/dumbhippo/dm/ChangeNotification.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/dm/ChangeNotification.java	2007-12-11 01:46:32 UTC (rev 7011)
+++ dumbhippo/trunk/server/src/com/dumbhippo/dm/ChangeNotification.java	2007-12-11 01:48:01 UTC (rev 7012)
@@ -100,13 +100,20 @@
 				if (property instanceof FeedPropertyHolder) {
 					int feedPropertyIndex = classHolder.getFeedPropertyIndex(property.getName());
 					model.getStore().invalidateFeed(classHolder, key, propertyIndex, timestamp, feedTimestamps[feedPropertyIndex]);
-				} else
+					
+					logger.debug("Invalidated {}#{}.{}, feedTimestamp={}", new Object[] { 
+							classHolder.getDMOClass().getSimpleName(),
+							key, 
+							property.getName(),
+							feedTimestamps[feedPropertyIndex]});
+				} else {
 					model.getStore().invalidate(classHolder, key, propertyIndex, timestamp);
 				
-				logger.debug("Invalidated {}#{}.{}", new Object[] { 
-						classHolder.getDMOClass().getSimpleName(),
-						key, 
-						property.getName() });
+					logger.debug("Invalidated {}#{}.{}", new Object[] { 
+							classHolder.getDMOClass().getSimpleName(),
+							key, 
+							property.getName() });
+				}
 			}
 				
 			propertyIndex++;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]