coreos / torus

Torus Distributed Storage
https://coreos.com/blog/torus-distributed-storage-by-coreos.html
Apache License 2.0
1.78k stars 172 forks source link

ring: tiny: improve info message #429

Closed nak3 closed 7 years ago

nak3 commented 7 years ago

Current info log of peer's weight is:

2016-12-10 08:41:35.481372 I | torus: b58bda02-be14-11e6-939d-52540099c881: 1

it is not clear what is 1. This patch changes the output as below:

2016-12-11 09:06:58.852361 I | torus: b58bda02-be14-11e6-939d-52540099c881: weight 10
2016-12-11 09:06:58.853003 I | torus: 0ddd280e-bf81-11e6-b9d4-52540099c881: weight 1
xiang90 commented 7 years ago

lgtm