vesoft-inc / nebula-python

Client API of Nebula Graph in Python
193 stars 78 forks source link

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

Closed ysjiao closed 2 years ago

ysjiao commented 3 years ago

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 commented 3 years ago

Which loglevel is set?

critical27 commented 3 years ago

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

Sophie-Xie commented 3 years ago

@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.

klay-ke commented 3 years ago

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

ysjiao commented 3 years ago

python @klay-ke

Aiee commented 3 years ago

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

ysjiao commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

transfer to nebula-python