Skip to content

EventBuilder uses the same logger as Project #126

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

Closed
wants to merge 2 commits into from
Closed

Conversation

mikeproeng37
Copy link
Contributor

Run tests on #122

- Previously, `EventBuilder` was instantiated by `Project` with the
  value of the `logger` local. However, when `Project` was not
  instantiated with a custom `logger`, `EventBuilder` would be
  instantiated with `nil` logger, which would cause `track` to raise a
  `NoMethodError` when called with tags.
- This commit changes the `Project` constructor to pass the `@logger`
  instance variable to `EventBuilder`, so that they are using the same
  logger, custom or otherwise.
- The added spec fails prior to the constructor change
@coveralls
Copy link

coveralls commented Sep 19, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 78f6cf1 on mng/pr-122 into e91cd75 on master.

@mikeproeng37
Copy link
Contributor Author

Closed with #122

@aliabbasrizvi aliabbasrizvi deleted the mng/pr-122 branch March 8, 2019 17:02
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