sqreen 1.15.5-java → 1.15.6-java
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: c81e2fb9fa2a91524cec1684291e624661ed43020f796cdf86e0b2a53acabef0
|
4
|
+
data.tar.gz: 8d519754e5e390da7faf9ba61db10f55c36cf2106377be0f442f8f416c4a613b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b52f068765fc16d900ffc51edc89c0aeed87ba97607cf3c47c6cf014a06861ef762570412702e10af399a5a65e2fd85e10c3fc4ded374a340c41251bdcdd681
|
7
|
+
data.tar.gz: 77fe0a178f47b6e89d3e4da68df41c7021ced4317ff2574ffffc2946ded66bf495751518426bebcf5d61e6456d0ad93642c60fb93fdf2782e2b394d7d7a9a0be
|
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: java
|
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
|
requirement: !ruby/object:Gem::Requirement
|