record consul session ID in lock info
This can help correlate TF and consul logs
This commit is contained in:
parent
7916268d7f
commit
d0ecb232ae
|
@ -228,6 +228,9 @@ func (c *RemoteClient) lock() (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
// store the session ID for correlation with consul logs
|
||||
c.info.Info = "consul session: " + lockSession
|
||||
|
||||
opts := &consulapi.LockOptions{
|
||||
Key: c.Path + lockSuffix,
|
||||
Session: lockSession,
|
||||
|
|
Loading…
Reference in New Issue