From 240481cdaa0d90209eaeb93ba519072cb42a3e57 Mon Sep 17 00:00:00 2001 From: Lz Date: Mon, 25 Mar 2024 11:11:45 +0800 Subject: [PATCH] fix(logs): fixed logging --- node_rpc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node_rpc.go b/node_rpc.go index 1920fdb..ec3bd7b 100644 --- a/node_rpc.go +++ b/node_rpc.go @@ -52,7 +52,7 @@ 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) + log.Printf("new: topic=%s key=%s lessee=%s ttl=%s\n", lease.Topic, lease.Key, lease.Lessee, lease.TTL) return nil } @@ -118,7 +118,7 @@ func (n *Node) ReleaseLock(req LockRequest, ok *bool) error { *ok = true - log.Printf("release: topic=%s key=%s lessee=%s ttl=%v\n", lease.Topic, lease.Key, lease.Lessee, lease.TTL) + log.Printf("release: topic=%s key=%s lessee=%s ttl=%s\n", lease.Topic, lease.Key, lease.Lessee, lease.TTL) return nil }