diff --git a/passbook/outposts/controllers/base.py b/passbook/outposts/controllers/base.py index cc315ddb0..4821ac83c 100644 --- a/passbook/outposts/controllers/base.py +++ b/passbook/outposts/controllers/base.py @@ -34,7 +34,7 @@ class BaseController: """Call .run() but capture all log output and return it.""" with capture_logs() as logs: self.run() - return logs + return [f"{x['controller']}: {x['event']}" for x in logs] def get_static_deployment(self) -> str: """Return a static deployment configuration""" diff --git a/passbook/outposts/controllers/k8s/base.py b/passbook/outposts/controllers/k8s/base.py index a2b6a5c04..50b236fda 100644 --- a/passbook/outposts/controllers/k8s/base.py +++ b/passbook/outposts/controllers/k8s/base.py @@ -31,9 +31,7 @@ class KubernetesObjectReconciler(Generic[T]): def __init__(self, outpost: Outpost): self.outpost = outpost self.namespace = "" - self.logger = get_logger( - component=f"k8s-reconciler-{self.__class__.__name__}", outpost=outpost - ) + self.logger = get_logger(controller=self.__class__.__name__, outpost=outpost) def run(self): """Create object if it doesn't exist, update if needed or recreate if needed."""