Skip to content

Commit

Permalink
Common: quiet urllib3 warnings (#12336)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 9ed56d429804a791d146a940c203872ee82bc4ea
  • Loading branch information
tkrause authored and Descartes Labs Build committed Nov 28, 2023
1 parent 7ad8fd2 commit f7d0f2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions descarteslabs/core/common/http/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import logging
import uuid
from http import HTTPStatus

Expand All @@ -37,6 +38,10 @@

from .proxy import ProxyAuthentication

# Disable warnings for retries etc
logging.getLogger("urllib3").setLevel(logging.ERROR)
logging.getLogger("urllib3").propagate = False


class HttpHeaderKeys:
RequestGroup = "X-Request-Group"
Expand Down

0 comments on commit f7d0f2e

Please sign in to comment.