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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 557a7f67084c24ccd0866a9f586ec1ff803aae98
4
- data.tar.gz: e4594457cab31e45f1d31b6f079bf52a0f8e8969
3
+ metadata.gz: 6c576fa8d39afe4fd20d6bd8bd6086c017675449
4
+ data.tar.gz: 51940afeb97ead1889de574564ca155d8b5f21c6
5
5
  SHA512:
6
- metadata.gz: e50641413455386a05c5ae3e9d69b7705e02704b66ed8e41a67670e5d455653514d5872aec0e266dc724bae9aa35c7c3d7ae541506081ca7fae84d6dc157dc28
7
- data.tar.gz: 7aaf0979f7f73e3e5371acfb41dcb489508249cfa7ef5faa00d1a80b99b9e7eccc48b928ae42d7ac328d47f11e7b63a6cb5dbf89db43c3aef25310f97c5d092c
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: #{self}"
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)
@@ -1,3 +1,3 @@
1
1
  module Tracee
2
- VERSION = '1.0.20'
2
+ VERSION = '1.0.21'
3
3
  end
data/lib/tracee.rb CHANGED
@@ -115,5 +115,5 @@ module Tracee
115
115
  end
116
116
 
117
117
 
118
- $log ||= Logger.new default: true
118
+ $log ||= Logger.new
119
119
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20
4
+ version: 1.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Baev