tracee 1.0.20 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tracee/logger.rb +9 -1
- data/lib/tracee/version.rb +1 -1
- data/lib/tracee.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: 6c576fa8d39afe4fd20d6bd8bd6086c017675449
|
4
|
+
data.tar.gz: 51940afeb97ead1889de574564ca155d8b5f21c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 799088d59b979a70f904e749b1bdd5469606dca1e7887054c99b76630827726d5f009b6f16d6342a8fb78733eeb03d2c31370e253253dab8e5bf34a7b571e5a1
|
7
|
+
data.tar.gz: 1b618f33803bdd64120a47eaaf03b7f9935677397cab45ff0cbcef6a8e53b3ca015ce86645a2685f5e6c3ec8929b89ae2c584a0094793d624bc977e1c94d8321
|
data/lib/tracee/logger.rb
CHANGED
@@ -43,7 +43,7 @@ module Tracee
|
|
43
43
|
|
44
44
|
if default
|
45
45
|
if Tracee.default_logger
|
46
|
-
warn "Overwriting default logger #{Tracee.default_logger}\nwith the new one: #{
|
46
|
+
warn "Overwriting default logger #{Tracee.default_logger.inspect}\nwith the new one: #{inspect}"
|
47
47
|
end
|
48
48
|
Tracee.default_logger = self
|
49
49
|
end
|
@@ -186,6 +186,14 @@ module Tracee
|
|
186
186
|
Tracee.default_logger.eql? self
|
187
187
|
end
|
188
188
|
|
189
|
+
def default=(boolean)
|
190
|
+
if boolean
|
191
|
+
Tracee.default_logger = self
|
192
|
+
elsif default?
|
193
|
+
Tracee.default_logger = nil
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
189
197
|
private
|
190
198
|
|
191
199
|
def norm_level(level)
|
data/lib/tracee/version.rb
CHANGED
data/lib/tracee.rb
CHANGED