8000 Pass logger into Callback{} so that logs are printed consistently by j16r · Pull Request #2435 · go-gorm/gorm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Pass logger into Callback{} so that logs are printed consistently #2435

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

Conversation

j16r
Copy link
Contributor
@j16r j16r commented May 1, 2019

Pass the db's logger into Callback{} so that the same logger is used for callback registration and removal.

[Fixes #1825]

@j16r j16r force-pushed the feature/use_standard_logger_in_callback_helpers branch from fad6075 to 8b12747 Compare May 7, 2019 16:42
@codecov-io
Copy link
codecov-io commented May 7, 2019

Codecov Report

Merging #2435 into master will increase coverage by <.01%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2435      +/-   ##
==========================================
+ Coverage   80.15%   80.15%   +<.01%     
==========================================
  Files          24       24              
  Lines        3431     3432       +1     
==========================================
+ Hits         2750     2751       +1     
  Misses        578      578              
  Partials      103      103
Impacted Files Coverage Δ
main.go 83.04% <100%> (ø) ⬆️
callback.go 90.99% <81.81%> (+0.08%) ⬆️

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 451c3cc...746f522. Read the comment docs.

@j16r j16r marked this pull request as ready for review May 7, 2019 17:19
@emirb
Copy link
Contributor
emirb commented May 8, 2019

Thanks @j16r!

@emirb emirb merged commit b715619 into go-gorm:master May 8, 2019
@emirb emirb mentioned this pull request May 8, 2019
blefevre pushed a commit to blefevre/gorm that referenced this pull request Feb 17, 2020
…-gorm#2435)

Pass logger into Callback{} so that logs are printed consistently
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.

enhancement: GetLogger() for callbacks
3 participants
0