scout_apm 2.0.0.pre4 → 2.0.0.pre5

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: 550d7e521d6f822cdc1acdb002d8e770e42e37ae
4
- data.tar.gz: fceea7f4780ab49b1a47f674f3d719a8a5e81b8e
3
+ metadata.gz: 6fa86ad784b0be8420776e79fcb62eeb5c350f5f
4
+ data.tar.gz: a89bf58be9cd96037bc7795fe829a6cfb970a979
5
5
  SHA512:
6
- metadata.gz: cc456fb9984ee49cb6cefdf496cd8fb1854f7bd69c905e2775d3563adc902e8e105168948c13dd1105af06616ff63358db2ba8dc21393cf651f1066c49eaaa03
7
- data.tar.gz: c8b63ebc3304cfff04b1769bbcb66740410fcdcb9b6a06dc58e155e88ae418b2ff0bd7ecedcd65570eb36fe675c5ce8340dff3f9b810b945c5bdd8da22682eac
6
+ metadata.gz: 98c75875afce984f011e778f76f9f0208b9b409181c333ea30a734d373aa63fd1c959688ce3c8e3f2c48962a231c6493b00e74c740fdb0a1c2ca404f14b7c6bd
7
+ data.tar.gz: f1c2458e1e1edb4881a668c9d94f4ccfab902fe3bf45dc0ab0329ee8488d2a5e5d21c0025103a6edf7cc14c4b71709399ebf9e2930fcb70fa0212091656360de
@@ -164,9 +164,19 @@ module ScoutApm
164
164
  ScoutApm::Environment.instance.env
165
165
  end
166
166
 
167
- # TODO: Make this better
168
167
  def logger
169
- ScoutApm::Agent.instance.logger || Logger.new(STDOUT)
168
+ if ScoutApm::Agent.instance.logger
169
+ return ScoutApm::Agent.instance.logger
170
+ else
171
+ l = Logger.new(STDOUT)
172
+ if ENV["SCOUT_LOG_LEVEL"] == "debug"
173
+ l.level = Logger::DEBUG
174
+ else
175
+ l.level = Logger::INFO
176
+ end
177
+
178
+ return l
179
+ end
170
180
  end
171
181
  end
172
182
  end
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "2.0.0.pre4"
2
+ VERSION = "2.0.0.pre5"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre4
4
+ version: 2.0.0.pre5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Haynes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-27 00:00:00.000000000 Z
12
+ date: 2016-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rusage