hanyazou / TelloPy

DJI Tello drone controller python package
Other
689 stars 292 forks source link

Stop debug information #42

Closed rsewell97 closed 5 years ago

rsewell97 commented 5 years ago

Hi,

I find the printed debugging information is not always helpful. Is there an easy way to disable this without going into the source code? I'm referring to constant messages such as Tello: 22:58:29.034: Info: video data 754039 bytes 368.0KB/sec Tello: 22:58:29.074: Info: counter_clockwise(val=50) for example. Btw, nice module - works a treat after fighting with av

hanyazou commented 5 years ago

You can suppress those 'Info: ' output by set_loglevel().

drone = tellopy.Tello()
drone.set_loglevel(drone.LOG_WARN)
rsewell97 commented 5 years ago

Yep - just found it :) thanks for your help