Author: j16sdiz
Date: 2009-01-02 01:31:23 +0000 (Fri, 02 Jan 2009)
New Revision: 24868

Modified:
   trunk/plugins/XMLSpider/XMLSpider.java
Log:
logging

Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java      2009-01-01 15:07:50 UTC (rev 
24867)
+++ trunk/plugins/XMLSpider/XMLSpider.java      2009-01-02 01:31:23 UTC (rev 
24868)
@@ -133,9 +133,14 @@
 
                        db.endThreadTransaction();
                        dbTransactionEnded = true;
+               } catch (RuntimeException e) {
+                       Logger.error(this, "Runtime Exception: " + e, e);       
        
+                       throw e;
                } finally {
-                       if (!dbTransactionEnded)
+                       if (!dbTransactionEnded) {
+                               Logger.minor(this, "rollback transaction", new 
Exception("debug"));
                                db.rollbackThreadTransaction();
+                       }
                }
        }
 
@@ -426,8 +431,10 @@
                                if (!stopped)
                                        startSomeRequests();
                        } finally {
-                               if (!dbTransactionEnded)
+                               if (!dbTransactionEnded) {
+                                       Logger.minor(this, "rollback 
transaction", new Exception("debug"));
                                        db.rollbackThreadTransaction();
+                               }
                        }
                }
        }
@@ -463,8 +470,10 @@
                        throw new RuntimeException("Unexcepected exception in 
onFailure()", e);
                } finally {
                        runningFetch.remove(page);
-                       if (!dbTransactionEnded)
+                       if (!dbTransactionEnded) {
+                               Logger.minor(this, "rollback transaction", new 
Exception("debug"));
                                db.rollbackThreadTransaction();
+                       }
                }
 
                startSomeRequests();

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to