From 8c186b8095196a4f185b955b22e31113ba8cea4a Mon Sep 17 00:00:00 2001 From: Marcelo Henrique Neppel Date: Thu, 5 Sep 2024 08:59:25 -0300 Subject: [PATCH] Add log for fix_leader_annotation method (#679) Signed-off-by: Marcelo Henrique Neppel --- src/charm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/charm.py b/src/charm.py index 6a0ccb31b1..6a5e448a6d 100755 --- a/src/charm.py +++ b/src/charm.py @@ -849,6 +849,7 @@ def fix_leader_annotation(self) -> bool: Endpoints, name=self.cluster_name, namespace=self._namespace, obj=patch ) self.app_peer_data.pop("cluster_initialised", None) + logger.info("Fixed missing leader annotation") except ApiError as e: if e.status.code == 403: self.on_deployed_without_trust()