elected 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elected/logging.rb +6 -5
- data/lib/elected/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5dc6e900af2721826b12eee64a192c8d99ad72c
|
4
|
+
data.tar.gz: eee1b4827086be7717aab4378c91d9752928fc13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4148d59cee205f8cb33c9347eaa433efb3d1cbc74e9920936868e6b9379ea4ddc5acb1957eafeb73341e7089a786c2e2c73187fe9097ed81640e83935453568e
|
7
|
+
data.tar.gz: 92f15065455697f2dc440e275973f7101943dc227f171415ba1e1172bf6b46837bd246d71567a9ea12838c0b42fb54630a99ad858de9babcaf17682a6a19f6b2
|
data/lib/elected/logging.rb
CHANGED
@@ -38,11 +38,12 @@ module Elected
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def log_prefix(length = 60)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
41
|
+
prefix = name
|
42
|
+
labels = log_prefix_labels
|
43
|
+
prefix += ".#{labels.last}" if labels
|
44
|
+
prefix = prefix.rjust(length, ' ')[-length, length]
|
45
|
+
prefix += ' |'
|
46
|
+
prefix
|
46
47
|
end
|
47
48
|
|
48
49
|
def run_thread_count
|
data/lib/elected/version.rb
CHANGED