Skip to content
Browse files

Fix excessive logging of original exception for NameError.

Default behavior for NameError from a Java exception w/ verbose
was to log the original exception as well. However, some of our
internal code expects NameError and uses that to fall back on
other class names. Modified the logic to not log by default in
verbose mode.
  • Loading branch information...
1 parent ea329bd commit 85dd01dd5467bb2d8f38f34bcc7953052be97236 @headius headius committed Aug 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/org/jruby/Ruby.java
View
2 src/org/jruby/Ruby.java
@@ -3383,7 +3383,7 @@ public RaiseException newNameError(String message, String name) {
}
public RaiseException newNameError(String message, String name, Throwable origException) {
- return newNameError(message, name, origException, true);
+ return newNameError(message, name, origException, false);
}
public RaiseException newNameError(String message, String name, Throwable origException, boolean printWhenVerbose) {

0 comments on commit 85dd01d

Please sign in to comment.
Something went wrong with that request. Please try again.