Title: [1140] trunk/jopenssl/src/java/org/jruby/ext/openssl/Cipher.java:
Fix some of the debug statements
- Revision
- 1140
- Author
- olabini
- Date
- 2009-02-04 12:23:07 -0500 (Wed, 04 Feb 2009)
Log Message
Fix some of the debug statements
Modified Paths
Diff
Modified: trunk/jopenssl/src/java/org/jruby/ext/openssl/Cipher.java (1139 => 1140)
--- trunk/jopenssl/src/java/org/jruby/ext/openssl/Cipher.java 2009-01-25 03:12:30 UTC (rev 1139)
+++ trunk/jopenssl/src/java/org/jruby/ext/openssl/Cipher.java 2009-02-04 17:23:07 UTC (rev 1140)
@@ -531,7 +531,7 @@
this.ciph.init(encryptMode ? javax.crypto.Cipher.ENCRYPT_MODE : javax.crypto.Cipher.DECRYPT_MODE, new SimpleSecretKey(this.key));
}
} catch(Exception e) {
- e.printStackTrace();
+ if (DEBUG) e.printStackTrace();
throw new RaiseException(getRuntime(), ciphErr, null, true);
}
}
@@ -548,7 +548,9 @@
}
if(!ciphInited) {
+ if (DEBUG) System.out.println("BEFORE INITING");
doInitialize();
+ if (DEBUG) System.out.println("AFTER INITING");
}
byte[] str = new byte[0];
@@ -568,7 +570,7 @@
}
}
} catch(Exception e) {
- e.printStackTrace();
+ if (DEBUG) e.printStackTrace();
throw new RaiseException(getRuntime(), ciphErr, e.getMessage(), true);
}
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel