Log unlock

graph-rework-2
noah metz 2023-06-27 18:48:45 -06:00
parent cf11176cff
commit ee98e13044
1 changed files with 1 additions and 0 deletions

@ -291,6 +291,7 @@ func UnlockLockable(ctx * GraphContext, lockable Lockable, node GraphNode, node_
if node == nil || lockable == nil{ if node == nil || lockable == nil{
panic("Cannot unlock without a specified node and lockable") panic("Cannot unlock without a specified node and lockable")
} }
ctx.Log.Logf("lockable", "Unlocking %s", lockable.ID())
_, err := UpdateStates(ctx, []GraphNode{lockable}, func(states []NodeState) ([]NodeState, interface{}, error) { _, err := UpdateStates(ctx, []GraphNode{lockable}, func(states []NodeState) ([]NodeState, interface{}, error) {
if lockable.ID() == node.ID() { if lockable.ID() == node.ID() {
if node_state != nil { if node_state != nil {