Skip to content

Use a static logger#15

Merged
headius merged 1 commit intomasterfrom
static_logger
Mar 16, 2023
Merged

Use a static logger#15
headius merged 1 commit intomasterfrom
static_logger

Conversation

@headius
Copy link
Copy Markdown
Owner

@headius headius commented Mar 16, 2023

There's no need to acquire a new logger instance, since they are thread-safe and shared across getLogger calls. Those calls do, however, trigger a security check to make sure you have access to the logger, and this led to jruby/jruby#7726.

Ths fix is to use a static logger. A better fix I will consider might be to just remove this feature or require users provide a logger.

There's no need to acquire a new logger instance, since they are
thread-safe and shared across `getLogger` calls. Those calls do,
however, trigger a security check to make sure you have access to
the logger, and this led to jruby/jruby#7726.

Ths fix is to use a static logger. A better fix I will consider
might be to just remove this feature or require users provide a
logger.
@headius headius added this to the 1.13 milestone Mar 16, 2023
@headius headius merged commit 1da51c9 into master Mar 16, 2023
headius added a commit to headius/jruby that referenced this pull request Mar 16, 2023
headius added a commit to headius/jruby that referenced this pull request Mar 16, 2023
headius added a commit to headius/jruby that referenced this pull request Mar 17, 2023
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

Successfully merging this pull request may close these issues.

1 participant