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

enhance logger #217

Merged
merged 3 commits into from
Oct 28, 2022
Merged

enhance logger #217

merged 3 commits into from
Oct 28, 2022

Conversation

HarrisChu
Copy link
Contributor

@HarrisChu HarrisChu commented Sep 28, 2022

  1. use log interface
  2. delete every logger in function, just use a unique logger.

to keep consistent, doesn't change code in cmd/importer.go, and other library could change logger by
logger.SetLogger(w.RunnerLogger)

refer: https://github.com/vesoft-inc/nebula-importer/pull/203/files

@HarrisChu HarrisChu requested a review from hetao92 September 28, 2022 08:02
@@ -11,6 +11,23 @@ import (
"github.com/vesoft-inc/nebula-importer/pkg/base"
)

type RunnerLoggerType interface {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about just use Logger?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK for me

@HarrisChu HarrisChu closed this Oct 28, 2022
@HarrisChu HarrisChu reopened this Oct 28, 2022
@HarrisChu HarrisChu merged commit 3cd1335 into vesoft-inc:master Oct 28, 2022
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.

4 participants