[jboss-svn-commits] JBL Code SVN: r29622 - labs/jbosslabs/labs-3.0-build/integration/cs-nfm/trunk/src/main/java/org/jboss/labs/clearspace/plugin/nfm.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Oct 15 10:01:25 EDT 2009


Author: lkrzyzanek
Date: 2009-10-15 10:01:25 -0400 (Thu, 15 Oct 2009)
New Revision: 29622

Modified:
   labs/jbosslabs/labs-3.0-build/integration/cs-nfm/trunk/src/main/java/org/jboss/labs/clearspace/plugin/nfm/DbNukesForumsManager.java
Log:
Added more detailed log messages

Modified: labs/jbosslabs/labs-3.0-build/integration/cs-nfm/trunk/src/main/java/org/jboss/labs/clearspace/plugin/nfm/DbNukesForumsManager.java
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/cs-nfm/trunk/src/main/java/org/jboss/labs/clearspace/plugin/nfm/DbNukesForumsManager.java	2009-10-15 13:48:48 UTC (rev 29621)
+++ labs/jbosslabs/labs-3.0-build/integration/cs-nfm/trunk/src/main/java/org/jboss/labs/clearspace/plugin/nfm/DbNukesForumsManager.java	2009-10-15 14:01:25 UTC (rev 29622)
@@ -310,12 +310,18 @@
               boolean success = createAnnouncement(topic, topicPost,
                   rootMessageUser, community);
               if (!success) {
+                log.error("Cannot create an Announcement, topic_id: "
+                    + topic.getTopicID());
                 failedTopics++;
               }
             } catch (UnauthorizedException e) {
-              throw new RuntimeException("Cannot create an Announcement.", e);
+              throw new RuntimeException(
+                  "Cannot create an Announcement, topic_id: "
+                      + topic.getTopicID(), e);
             } catch (RejectedException e) {
-              throw new RuntimeException("Cannot create an Announcement.", e);
+              throw new RuntimeException(
+                  "Cannot create an Announcement, topic_id: "
+                      + topic.getTopicID(), e);
             }
             continue;
           }
@@ -335,7 +341,9 @@
 
               postsCount++;
             } catch (Exception e) {
-              log.error("Cannot create forum thread. Going to next topic");
+              log
+                  .error("Cannot create forum thread. Going to next topic, topic_id: "
+                      + topic.getTopicID());
               failedTopics++;
               continue;
             }
@@ -485,7 +493,7 @@
           topicsCount++;
         } catch (Exception e) {
           log.error("Some unexpected error occur. "
-              + "Going to next topic. topic_id" + forumID, e);
+              + "Going to next topic. forum_id" + forumID, e);
           failedTopics++;
         }
       }



More information about the jboss-svn-commits mailing list