Skip to content

Commit 1d7f685

Browse files
authored
Add context to vault error logging (#5370)
APPSRE-13147
1 parent a3d893c commit 1d7f685

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

reconcile/utils/vault.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ def _refresh_client_auth(self) -> None:
185185
mount_point=self.kube_auth_mount,
186186
)
187187
except Exception as e:
188-
LOG.error(e)
188+
LOG.error(
189+
f"Failed to authenticate to Vault server {self._client.url} "
190+
f"using role '{self.kube_auth_role}' on mount '{self.kube_auth_mount}': {e}"
191+
)
189192
else:
190193
self._client.auth_approle(self.role_id, self.secret_id)
191194

0 commit comments

Comments
 (0)