Skip to content

Commit

Permalink
fix(logs): fixed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlangzi committed Mar 25, 2024
1 parent 6310712 commit bed7adb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ func (n *Node) NewLock(req LockRequest, t *Lease) error {
*t = lease
}

log.Printf("new: topic=%s key=%s lessee=%s ttl=%v\n", lease.Topic, lease.Key, lease.Lessee, lease.TTL)

return nil
}

Expand Down Expand Up @@ -127,7 +129,7 @@ func (n *Node) Freeze(topic string, ok *bool) error {
n.frozen[topic] = struct{}{}
*ok = true

log.Printf("Freeze: topic=%s", topic)
log.Printf("freeze: topic=%s", topic)

return nil
}
Expand Down

0 comments on commit bed7adb

Please sign in to comment.