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 bed7adb commit 240481c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 55 in node_rpc.go

View workflow job for this annotation

GitHub Actions / Unit Tests

log.Printf format %s has arg lease.TTL of wrong type github.com/yaitoo/sqle.Duration

return nil
}
Expand Down Expand Up @@ -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)

Check failure on line 121 in node_rpc.go

View workflow job for this annotation

GitHub Actions / Unit Tests

log.Printf format %s has arg lease.TTL of wrong type github.com/yaitoo/sqle.Duration

return nil
}
Expand Down

0 comments on commit 240481c

Please sign in to comment.