stop httpx logging full urls
This commit is contained in:
5
main.py
5
main.py
@@ -30,6 +30,11 @@ load_dotenv(dotenv_path=dotenv_path)
|
||||
# Suppress googleapiclient discovery cache warning
|
||||
logging.getLogger("googleapiclient.discovery_cache").setLevel(logging.ERROR)
|
||||
|
||||
# Suppress httpx/httpcore INFO logs that leak access tokens in URLs
|
||||
# (e.g. tokeninfo?access_token=ya29.xxx)
|
||||
logging.getLogger("httpx").setLevel(logging.WARNING)
|
||||
logging.getLogger("httpcore").setLevel(logging.WARNING)
|
||||
|
||||
reload_oauth_config()
|
||||
|
||||
logging.basicConfig(
|
||||
|
||||
Reference in New Issue
Block a user