Disable urllib3 warnings

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

Change-Id: I3acbda7c69cad6ebfee8b62c93cfba81bd812974
This commit is contained in:
Michał Dulko 2020-04-08 12:53:56 +02:00
parent 01ef4ee19c
commit 9553f78f9a
2 changed files with 5 additions and 0 deletions

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()

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()