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

Allow user to set a custom logger #1

Merged
merged 1 commit into from
Oct 16, 2015
Merged

Conversation

justmoon
Copy link
Collaborator

Since pathfind is just a module (not a whole application) it should not instantiate any services. Services generally can malfunction if multiple instances are created in the same process.

In the current version of five-bells-demo, this causes a crash because multiple instances of the log service in five-bells-shared are trying to be instantiated. (Issue will not appear when using npm link.)

By making the logging pluggable, this module also no longer requires five-bells-shared.

@emschwartz
Copy link
Contributor

LGTM

emschwartz added a commit that referenced this pull request Oct 16, 2015
Allow user to set a custom logger
@emschwartz emschwartz merged commit 4054c39 into master Oct 16, 2015
@emschwartz emschwartz deleted the feature/set_logger branch October 16, 2015 17:37
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.

None yet

2 participants