Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected ArgumentError raised by Logger.new #5212

Closed
raelik opened this issue Jun 8, 2018 · 1 comment
Closed

Unexpected ArgumentError raised by Logger.new #5212

raelik opened this issue Jun 8, 2018 · 1 comment

Comments

@raelik
Copy link

raelik commented Jun 8, 2018

Environment

jruby 9.2.0.0 (2.5.0) 2018-05-24 81156a8 Java HotSpot(TM) 64-Bit Server VM 25.60-b23 on 1.8.0_60-b27 +indy +jit [darwin-x86_64] (On OS X Yosemite)

Expected Behavior

The following code, which is being used in a spec, normally works fine on jRuby 9.1.16.0 and prior:

@error_log    = StringIO.new
@error_logger = Logger.new(@error_log)

Actual Behavior

Upon updating to 9.2.0.0, it raises the following exception:

ArgumentError: invalid log level: 0

@raelik
Copy link
Author

raelik commented Jun 8, 2018

Nevermind, figured it out. Was due to a namespace collision caused by doing:

java_import 'java.lang.Integer'

Nothing to see here, move along...

@raelik raelik closed this as completed Jun 8, 2018
@kares kares added this to the Invalid or Duplicate milestone Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants