Skip to content

Commit

Permalink
chore(client): remove useless httpx verbose log (#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianweidut authored Jul 4, 2023
1 parent 6a6cf1a commit 6a151a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/starwhale/core/model/copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import struct
import typing as t
import hashlib
import logging
import functools
import contextvars
from pathlib import Path
Expand All @@ -22,6 +23,8 @@
from starwhale.base.uri.project import Instance
from starwhale.base.uri.resource import Resource

logging.getLogger("httpx").setLevel(logging.WARNING)

MAX_DATA_BLOB_SIZE = convert_to_bytes(
os.environ.get("SW_BUNDLE_COPY_DATA_BLOB_SIZE", "8m")
)
Expand Down Expand Up @@ -124,6 +127,7 @@ async def _http_request(
assert path is not None
url = f"{instance.url}/api/{SW_API_VERSION}/{path.lstrip('/')}"
headers["Authorization"] = instance.token

url_iter = cloud_blob_cache.replace_url(url, replace)
try:
interval = 0.0
Expand Down

0 comments on commit 6a151a6

Please sign in to comment.