Skip to content

Plumb a custom logger through the core rather than only in Restore #481

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

Merged
merged 1 commit into from
May 20, 2023

Conversation

evanphx
Copy link
Contributor

@evanphx evanphx commented May 19, 2023

Currently replica.Restore() accepts a Logger in it's options, but other things within Replica and DB use log.Printf. This just tidys it up a bit so that both Replica and DB contain a logger (that defaults to log.Default()) that can be changed to redirect their logging output.

@benbjohnson
Copy link
Owner

lgtm! Thanks for wiring that up, @evanphx. 🙏

@benbjohnson benbjohnson merged commit 18760d2 into benbjohnson:main May 20, 2023
@evanphx
Copy link
Contributor Author

evanphx commented May 20, 2023

Thanks @benbjohnson!

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.

2 participants