record consul session ID in lock info

This can help correlate TF and consul logs
pull/16289/head
James Bardin 9 years ago
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…
Cancel
Save