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

Fix call depth of standard logger in go1.12 #706

Merged
merged 1 commit into from
Apr 29, 2019
Merged

Fix call depth of standard logger in go1.12 #706

merged 1 commit into from
Apr 29, 2019

Conversation

prashantv
Copy link
Collaborator

Go1.11 includes a caller for the auto-generated wrapper within the
standard library logger, which is no longer included in Go1.12.

See #682 (comment) for
more details.

Fixes #682.

Go1.11 includes a caller for the auto-generated wrapper within the
standard library logger, which is no longer included in Go1.12.

See #682 (comment) for
more details.

Fixes #682.
@prashantv prashantv requested a review from abhinav April 29, 2019 04:10
@codecov
Copy link

codecov bot commented Apr 29, 2019

Codecov Report

Merging #706 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #706   +/-   ##
=======================================
  Coverage   97.43%   97.43%           
=======================================
  Files          40       40           
  Lines        2109     2109           
=======================================
  Hits         2055     2055           
  Misses         46       46           
  Partials        8        8
Impacted Files Coverage Δ
global.go 97.14% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cada3b3...2bad81b. Read the comment docs.

@abhinav
Copy link
Collaborator

abhinav commented Apr 29, 2019

Is a clean test for this possible?

@prashantv
Copy link
Collaborator Author

We already have a test that fails for 1.12, but Travis isn't running tests on 1.12 yet.

#707 is stacked on top which adds testing for 1.12.

@prashantv prashantv merged commit 5dab936 into master Apr 29, 2019
@prashantv prashantv deleted the stdlog branch April 29, 2019 14:17
prashantv added a commit that referenced this pull request Apr 29, 2019
prashantv added a commit that referenced this pull request Apr 29, 2019
lixingwang added a commit to lixingwang/zap that referenced this pull request May 10, 2019
* master:
  README: Switch to travis-ci.com for badge (uber-go#709)
  Fix changelog links for 675
  Prep for 1.10.0 release, update CHANGELOG (uber-go#705)
  Add Go 1.12 for Travis (uber-go#707)
  Fix call depth of standard logger in go1.12 (uber-go#706)
  Fix inconsistency between MapObjectEncoder's AddByteString and AppendByteString (uber-go#657)
  Disable HTMLEscape in reflect JSON encoder (uber-go#704)
cgxxv pushed a commit to cgxxv/zap that referenced this pull request Mar 25, 2022
Go1.11 includes a caller for the auto-generated wrapper within the
standard library logger, which is no longer included in Go1.12.

See uber-go#682 (comment) for
more details.

Fixes uber-go#682.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Tests fail with Go1.12rc1
2 participants