[Yanel-commits] rev 55359 - public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/resources/usecase/thread

michi at wyona.com michi at wyona.com
Thu Dec 9 13:35:25 CET 2010


Author: michi
Date: 2010-12-09 13:35:24 +0100 (Thu, 09 Dec 2010)
New Revision: 55359

Modified:
   public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/resources/usecase/thread/UsecaseThread.java
Log:
log messages improved

Modified: public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/resources/usecase/thread/UsecaseThread.java
===================================================================
--- public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/resources/usecase/thread/UsecaseThread.java	2010-12-09 12:03:07 UTC (rev 55358)
+++ public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/resources/usecase/thread/UsecaseThread.java	2010-12-09 12:35:24 UTC (rev 55359)
@@ -73,7 +73,7 @@
         String threadKey = getThreadKey(this.threadID);
         String threadKeyPath = directoryPath + "/" + threadKey;
         if (repository.existsNode(threadKeyPath)) {
-            String errorMsg = "Thread with id '" + threadID + "' exists already within repository!";
+            String errorMsg = "Thread with id '" + threadID + "' exists already within repository: " + threadKeyPath;
             log.error(errorMsg);
             throw new IllegalStateException(errorMsg);
         }
@@ -126,7 +126,7 @@
             for (int i = 0; i < threadIDs.length; i++) {
                 log.warn("DEBUG: Thread ID: " + threadIDs[i]);
                 if (javaThreadId.equals("" + threadIDs[i])) {
-                    log.warn("DEBUG: Thread with id '" + javaThreadId + "' is running.");
+                    log.debug("Thread with id '" + javaThreadId + "' is running.");
                     return thbean.getThreadInfo(threadIDs[i]);
 /*
                     final Thread[] threads = getAllThreads();
@@ -140,10 +140,10 @@
 */
                 }
             }
-            log.warn("No such thread running: " + threadID + ", " + javaThreadId);
+            log.info("No such thread running: " + threadID + ", " + javaThreadId);
             return null;
         } else {
-            log.warn("No such thread '" + threadID + "' within repository: " + threadKeyPath);
+            log.info("No such thread '" + threadID + "' within repository: " + threadKeyPath);
             return null;
         }
         //return (UsecaseThread)session.getAttribute(attrName); 



More information about the Yanel-commits mailing list