File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,13 @@ func (c *Client) startTokenLifecycleManager(initialLoginDone chan struct{}) {
90
90
91
91
initialLoginSucceed := false
92
92
for i := 0 ; i < c .vaultApiClient .MaxRetries (); i ++ {
93
+ if i != 0 {
94
+ log .Entry ().Infof ("Retrying Vault login. Attempt %d of %d" , i , c .vaultApiClient .MaxRetries ())
95
+ }
96
+
93
97
vaultLoginResp , err := c .login ()
94
98
if err != nil {
95
- log .Entry ().Errorf ("unable to authenticate to Vault: %v" , err )
99
+ log .Entry ().Warnf ("unable to authenticate to Vault: %v" , err )
96
100
continue
97
101
}
98
102
if ! initialLoginSucceed {
@@ -103,7 +107,7 @@ func (c *Client) startTokenLifecycleManager(initialLoginDone chan struct{}) {
103
107
104
108
tokenErr := c .manageTokenLifecycle (vaultLoginResp )
105
109
if tokenErr != nil {
106
- log .Entry ().Errorf ("unable to start managing token lifecycle: %v" , err )
110
+ log .Entry ().Warnf ("unable to start managing token lifecycle: %v" , err )
107
111
continue
108
112
}
109
113
}
You can’t perform that action at this time.
0 commit comments