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

go/store/util/verbose: Add ability to override Log function. #269

Merged
merged 6 commits into from Dec 20, 2019

Conversation

reltuk
Copy link
Contributor

@reltuk reltuk commented Dec 19, 2019

No description provided.

@reltuk reltuk requested a review from bheni December 19, 2019 21:04
@reltuk
Copy link
Contributor Author

reltuk commented Dec 19, 2019

@bheni Ok, just adopted zap.Logger natively. PTAL.

encoder := zapcore.NewConsoleEncoder(zap.NewDevelopmentEncoderConfig())
core := zapcore.NewCore(encoder, zapcore.Lock(os.Stderr), enabler)
Logger = func(ctx context.Context) *zap.Logger {
return zap.New(core)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New logger for each call for the default dolt client?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we set the default log level to error for dolt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warn seems fine...there is currently no logging though.

@reltuk reltuk merged commit be29405 into master Dec 20, 2019
@reltuk reltuk deleted the aaron/dolt-store-verbose-log-override branch January 6, 2020 23:58
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.

None yet

2 participants