From bed7adb2ecaf759dd1f416bb8cce8cc21cf15e0f Mon Sep 17 00:00:00 2001 From: Lz Date: Mon, 25 Mar 2024 11:07:45 +0800 Subject: [PATCH] fix(logs): fixed logging --- node_rpc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node_rpc.go b/node_rpc.go index 1eb7711..1920fdb 100644 --- a/node_rpc.go +++ b/node_rpc.go @@ -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 } @@ -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 }