Turn off logging in debug mode

msbm
Hi, I am facing the following issue

import logging

kite = KiteConnect(api_key=api_key, debug=False)
logging.basicConfig(level=logging.DEBUG)

So you can see that logging is in DEBUG mode and I have given False for logging to KiteConnect
Still KiteConnect logs all requests like

2021-08-05 00:12:42 Starting new HTTPS connection (1): api.kite.trade:443
2021-08-05 00:12:42 https://api.kite.trade:443 "GET /quote/ltp?i=NSE%3ANIFTY+50 HTTP/1.1" 200 None

I want to set the logging mode to DEBUG but don't want KiteConnect to log

What have I done wrong or what could be the solution? Shouldn't the debug parameter take care of that?
Sign In or Register to comment.