debugging on the haltWatch method
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 28 Jun 2007 14:37:02 +0000 (14:37 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 28 Jun 2007 14:37:02 +0000 (14:37 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@413 be28352e-c001-0410-b1a7-c7978e42abec

src/uk/ac/vamsas/client/simpleclient/WatcherElement.java

index 87b50db..b3235d5 100644 (file)
@@ -24,13 +24,13 @@ public abstract class WatcherElement {
    * before returning. If no thread is running then it returns immediately.\r
    */\r
   public void haltWatch() {\r
-    if (log.isDebugEnabled())\r
-      log.debug("haltWatch on "+watcher.getSubject());\r
     // set the flag to skip this watch element.\r
     watchForChange=false;\r
+    if (log.isDebugEnabled())\r
+      log.debug("haltWatch on "+watcher.getSubject());\r
     endWatch();\r
-    // watcher=null;\r
-    \r
+    if (log.isDebugEnabled())\r
+      log.debug("haltWatch completed on "+watcher.getSubject());\r
   }\r
   /**\r
    * called by haltWatch before \r
@@ -54,6 +54,8 @@ public abstract class WatcherElement {
    * enablewatch\r
    */\r
   protected void enableWatch() {\r
+    if (log.isDebugEnabled())\r
+      log.debug("enableWatch on "+getSubject());\r
     watchForChange=true;\r
     initWatch();\r
     if (log.isDebugEnabled())\r