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

Make loggers get created lazily, refactoring to support this behavior an... #8

Merged
merged 6 commits into from
Nov 9, 2013

Conversation

wr0ngway
Copy link
Owner

@wr0ngway wr0ngway commented Nov 8, 2013

...d (hopefully) make the code more understandable

… and (hopefully) make the code more understandable
end

def remove_inheritance_handler
return if ! defined?(Object.singleton_class.inherited_with_lumber_registry)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of unless ?

@coveralls
Copy link

Coverage Status

Coverage decreased (-76.38%) when pulling 8c2bd7b on lazy_logger into 1180cff on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.19%) when pulling 7a4e59e on lazy_logger into 1180cff on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) when pulling 71dc96f on lazy_logger into 1180cff on master.


def find_registered_logger(clazz)
synchronize do
return nil unless clazz
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this happens often, you can pull it out of the lock safely.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.23%) when pulling 9a1ff9b on lazy_logger into 1180cff on master.

@wr0ngway wr0ngway merged commit 9a1ff9b into master Nov 9, 2013
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.

3 participants