outposts: fix outpost mangling log output
This commit is contained in:
parent
82d50f7eaa
commit
d8c522233e
|
@ -317,6 +317,7 @@ class TestSourceOAuth1(SeleniumTestCase):
|
||||||
self.driver.find_element(By.CSS_SELECTOR, "[name='confirm']").click()
|
self.driver.find_element(By.CSS_SELECTOR, "[name='confirm']").click()
|
||||||
|
|
||||||
# Wait until we've loaded the user info page
|
# Wait until we've loaded the user info page
|
||||||
|
sleep(2)
|
||||||
self.wait.until(ec.presence_of_element_located((By.ID, "user-settings")))
|
self.wait.until(ec.presence_of_element_located((By.ID, "user-settings")))
|
||||||
self.driver.get(self.url("passbook_core:user-settings"))
|
self.driver.get(self.url("passbook_core:user-settings"))
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""Base Controller"""
|
"""Base Controller"""
|
||||||
from typing import Dict, List
|
from typing import Dict, List
|
||||||
|
|
||||||
from structlog import get_logger
|
from structlog import get_logger, wrap_logger
|
||||||
from structlog.testing import capture_logs
|
from structlog.testing import capture_logs
|
||||||
|
|
||||||
from passbook.lib.sentry import SentryIgnoredException
|
from passbook.lib.sentry import SentryIgnoredException
|
||||||
|
@ -21,8 +21,8 @@ class BaseController:
|
||||||
|
|
||||||
def __init__(self, outpost: Outpost):
|
def __init__(self, outpost: Outpost):
|
||||||
self.outpost = outpost
|
self.outpost = outpost
|
||||||
self.logger = get_logger(
|
self.logger = wrap_logger(
|
||||||
controller=self.__class__.__name__, outpost=self.outpost
|
get_logger(), controller=self.__class__.__name__, outpost=self.outpost
|
||||||
)
|
)
|
||||||
self.deployment_ports = {}
|
self.deployment_ports = {}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ from typing import TYPE_CHECKING, Generic, TypeVar
|
||||||
|
|
||||||
from kubernetes.client import V1ObjectMeta
|
from kubernetes.client import V1ObjectMeta
|
||||||
from kubernetes.client.rest import ApiException
|
from kubernetes.client.rest import ApiException
|
||||||
from structlog import get_logger
|
from structlog import get_logger, wrap_logger
|
||||||
|
|
||||||
from passbook import __version__
|
from passbook import __version__
|
||||||
from passbook.lib.sentry import SentryIgnoredException
|
from passbook.lib.sentry import SentryIgnoredException
|
||||||
|
@ -35,8 +35,8 @@ class KubernetesObjectReconciler(Generic[T]):
|
||||||
def __init__(self, controller: "KubernetesController"):
|
def __init__(self, controller: "KubernetesController"):
|
||||||
self.controller = controller
|
self.controller = controller
|
||||||
self.namespace = controller.outpost.config.kubernetes_namespace
|
self.namespace = controller.outpost.config.kubernetes_namespace
|
||||||
self.logger = get_logger(
|
self.logger = wrap_logger(
|
||||||
controller=self.__class__.__name__, outpost=controller.outpost
|
get_logger(), controller=self.__class__.__name__, outpost=controller.outpost
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Reference in a new issue