diff --git a/backend/remote-state/consul/client.go b/backend/remote-state/consul/client.go index fe14e2c0c7..e180210912 100644 --- a/backend/remote-state/consul/client.go +++ b/backend/remote-state/consul/client.go @@ -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,