sqreen 1.15.5 → 1.15.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sqreen/configuration.rb +4 -0
- data/lib/sqreen/log.rb +13 -0
- data/lib/sqreen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2954f152a5de09e1e76229fb51bdd4de43c3368a0c147e9d6df5e718b8ef7db2
|
4
|
+
data.tar.gz: 73675a112d80f502a9cbef995eacd48aa53aa7919064b49f0c56faaed2bfceef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 984f765a0d7995d49cda4515df0d6bed2c2390b38e713e927af566ccd71e0d5cb22c05b2a8c2cde7a225e8ec146d2e42ed80ceb7775b6e11939819422250918f
|
7
|
+
data.tar.gz: 0bf04fb5f2fe03e0b6614e0f2c06f9cacba288bd553c98fa12b7a5bf258eafb32bac45624cc60210a8e8d2d168a19eb6eb3d72c494d066a038eac4acd44fd355
|
data/lib/sqreen/configuration.rb
CHANGED
data/lib/sqreen/log.rb
CHANGED
@@ -11,6 +11,7 @@ module Sqreen
|
|
11
11
|
def self::log
|
12
12
|
@logger ||= nil
|
13
13
|
return @logger unless @logger.nil?
|
14
|
+
return NoopLogger.instance unless Sqreen.configured?
|
14
15
|
@logger = Logger.new(
|
15
16
|
Sqreen.config_get(:log_level).to_s.upcase,
|
16
17
|
Sqreen.config_get(:log_location)
|
@@ -119,4 +120,16 @@ module Sqreen
|
|
119
120
|
logger.formatter = FormatterWithTid.new
|
120
121
|
end
|
121
122
|
end
|
123
|
+
|
124
|
+
class NoopLogger
|
125
|
+
include Singleton
|
126
|
+
|
127
|
+
def debug(_msg = nil); end
|
128
|
+
|
129
|
+
def info(_msg = nil); end
|
130
|
+
|
131
|
+
def warn(_msg = nil); end
|
132
|
+
|
133
|
+
def error(_msg = nil); end
|
134
|
+
end
|
122
135
|
end
|
data/lib/sqreen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqreen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sqreen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sq_mini_racer
|