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

too many logs are printed when calling GraphStorageClient.scan_vertex(). #150

Closed
ysjiao opened this issue Sep 15, 2021 · 9 comments · Fixed by #186
Closed

too many logs are printed when calling GraphStorageClient.scan_vertex(). #150

ysjiao opened this issue Sep 15, 2021 · 9 comments · Fixed by #186
Assignees

Comments

@ysjiao
Copy link

ysjiao commented Sep 15, 2021

when GraphStorageClient.scan_vertex() is called, to many logs as follows. I've tried to set leve of logging, but it doesn't work.
image

@CPWstatic
Copy link
Contributor

Which loglevel is set?

@critical27
Copy link

@Sophie-Xie ask the colleague who is responsible for python or java client

@Sophie-Xie
Copy link
Contributor

@Sophie-Xie ask the colleague who is responsible for python or java client

@Aiee is the owner of python client, @klay-ke is the owner of java client.

@critical27 critical27 assigned klay-ke and Aiee and unassigned critical27 Sep 18, 2021
@klay-ke
Copy link

klay-ke commented Sep 19, 2021

@ysjiao which client are you using? Java, go or python?

@ysjiao
Copy link
Author

ysjiao commented Sep 26, 2021

python @klay-ke

@Aiee
Copy link
Contributor

Aiee commented Sep 26, 2021

@ysjiao What's the log level when you encounter the problems? Did you set --local-config == true in your config files?

@ysjiao
Copy link
Author

ysjiao commented Sep 27, 2021

@Aiee I want use logging.getLogger('nebula2').setLevel(logging.WARNING) to control the log level of nebula2-python,while other scripts using DEBUG. Should I do the both things: 1) set --local-config == true in nebula-metad.conf , 2) set logging.getLogger('nebula2').setLevel(logging.WARNING) in my scripts

@etern
Copy link

etern commented Sep 28, 2021

@Aiee it's a design flaw of the python client
A module specific logger should always be used, so users got a chance to control nebula logging.
But now, logging.debug is used directly, it's root logger, like this one
Just use a logger like this

@HarrisChu
Copy link
Contributor

transfer to nebula-python

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 a pull request may close this issue.

8 participants