Author: nextgens
Date: 2007-11-04 10:57:04 +0000 (Sun, 04 Nov 2007)
New Revision: 15681

Modified:
   trunk/apps/Thaw/src/thaw/plugins/signatures/Identity.java
Log:
Thaw: add some debugging code

Modified: trunk/apps/Thaw/src/thaw/plugins/signatures/Identity.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/signatures/Identity.java   2007-11-03 
20:11:05 UTC (rev 15680)
+++ trunk/apps/Thaw/src/thaw/plugins/signatures/Identity.java   2007-11-04 
10:57:04 UTC (rev 15681)
@@ -237,6 +237,7 @@

                } catch(SQLException e) {
                        Logger.error(this, "Unable to change trust level 
because: "+e.toString());
+                       e.printStackTrace();
                }
        }

@@ -266,6 +267,7 @@
                        Logger.error(this,
                                     "SQLException while setting the identity 
as original : "
                                     +e.toString());
+                       e.printStackTrace();
                }
        }

@@ -360,6 +362,7 @@
                        }
                } catch(SQLException e) {
                        Logger.error(new Identity(), "Error while getting 
identity (2) : "+e.toString());
+                       e.printStackTrace();
                }

                return null;
@@ -394,6 +397,7 @@
                        }
                } catch(SQLException e) {
                        Logger.error(new Identity(), "Error while getting 
identity (1) : "+e.toString());
+                       e.printStackTrace();
                }

                return i;
@@ -471,6 +475,7 @@
                        }
                } catch(SQLException e) {
                        Logger.error(this, "Exception while adding the identity 
to the bdd: "+e.toString());
+                       e.printStackTrace();
                }
        }

@@ -488,6 +493,7 @@
                        }
                } catch(SQLException e) {
                        Logger.warning(this, "Exception while deleting the 
identity from the bdd: "+e.toString());
+                       e.printStackTrace();
                        new thaw.gui.WarningWindow((thaw.core.MainWindow)null,
                                                   
I18n.getMessage("thaw.plugin.signature.delete.cant"));
                }
@@ -515,6 +521,7 @@
                        return frostCrypt.detachedVerify(text, publicKey, sig);
                } catch(Exception e) {
                        Logger.notice(this, "signature check failed because: 
"+e.toString());
+                       e.printStackTrace();
                        return false;
                }
        }
@@ -572,6 +579,7 @@
                        }
                } catch(SQLException e) {
                        Logger.error(new Identity(), "Error while getting 
identities (1): "+e.toString());
+                       e.printStackTrace();
                }

                return null;
@@ -628,6 +636,7 @@
                        return frostCrypt.decrypt(input, privateKey);
                } catch(Exception e) {
                        Logger.info(this, "hm, '"+e.toString()+"' => probably 
not for us ("+toString()+")");
+                       e.printStackTrace();
                }

                return null;


Reply via email to