Skip to content
New issue

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

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

Already on GitHub? # to your account

AddCallerSkip in RedirectStdLog (#320) #321

Merged
merged 3 commits into from
Feb 19, 2017

Conversation

skipor
Copy link
Contributor

@skipor skipor commented Feb 19, 2017

Make entries logged through log.Print have correct caller. Fixes #320.

Make entries logged through log.Print have correct caller.
@mention-bot
Copy link

@skipor, thanks for your PR! By analyzing the history of the files in this pull request, we identified @peter-edge and @akshayjshah to be potential reviewers.

@akshayjshah
Copy link
Contributor

akshayjshah commented Feb 19, 2017

Looks great - I'm going to push a few small changes and then land.

Specifically:

  • Let's always set the skip level properly, even if caller annotations aren't enabled.
  • Pass required options in the withLogger helper - no need to do it inside the closure.
  • Include descriptions of the error in each assertion.

Add some test assertion methods and restructure the caller skipping a bit.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants