Browse Source

Disable urllib3 warnings

We don't really need them in any logs, it's just garbage.

Change-Id: I3acbda7c69cad6ebfee8b62c93cfba81bd812974
changes/90/718390/1
Michał Dulko 1 year ago
parent
commit
9553f78f9a
2 changed files with 5 additions and 0 deletions
  1. +2
    -0
      kuryr_kubernetes/cni/daemon/service.py
  2. +3
    -0
      kuryr_kubernetes/controller/service.py

+ 2
- 0
kuryr_kubernetes/cni/daemon/service.py View File

@ -24,6 +24,7 @@ import time
import cotyledon
import flask
from pyroute2.ipdb import transactional
import urllib3
import os_vif
from os_vif.objects import base
@ -330,6 +331,7 @@ class CNIDaemonServiceManager(cotyledon.ServiceManager):
def start():
urllib3.disable_warnings()
config.init(sys.argv[1:])
config.setup_logging()


+ 3
- 0
kuryr_kubernetes/controller/service.py View File

@ -16,6 +16,8 @@
import functools
import sys
import urllib3
import os_vif
from oslo_config import cfg
from oslo_log import log as logging
@ -162,6 +164,7 @@ class KuryrK8sService(service.Service, periodic_task.PeriodicTasks,
def start():
urllib3.disable_warnings()
config.init(sys.argv[1:])
config.setup_logging()
clients.setup_clients()


Loading…
Cancel
Save