newrelic_rpm 2.14.1.logging1 → 2.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of newrelic_rpm might be problematic. Click here for more details.
- data/CHANGELOG +0 -3
- data/lib/new_relic/control/logging_methods.rb +9 -12
- data/lib/new_relic/version.rb +1 -1
- data/newrelic_rpm.gemspec +1 -1
- metadata +3 -4
data/CHANGELOG
CHANGED
@@ -1,6 +1,3 @@
|
|
1
|
-
v2.14.1.logging1
|
2
|
-
* Special debug logging build, for all those fans of War and Peace out there
|
3
|
-
|
4
1
|
v2.14.1
|
5
2
|
* Avoid overriding methods named 'log' when including the MethodTracer module
|
6
3
|
* Ensure that all load paths for 'new_relic/agent' go through 'new_relic/control' first
|
@@ -26,7 +26,6 @@ module NewRelic
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def should_log?
|
29
|
-
return true # debug build! always log, ALWAYS
|
30
29
|
@settings && agent_enabled?
|
31
30
|
end
|
32
31
|
|
@@ -42,17 +41,15 @@ module NewRelic
|
|
42
41
|
end
|
43
42
|
|
44
43
|
# set the log level as specified in the config file
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
# else log.level = Logger::INFO
|
55
|
-
# end
|
44
|
+
|
45
|
+
case fetch("log_level","info").downcase
|
46
|
+
when "debug" then log.level = Logger::DEBUG
|
47
|
+
when "info" then log.level = Logger::INFO
|
48
|
+
when "warn" then log.level = Logger::WARN
|
49
|
+
when "error" then log.level = Logger::ERROR
|
50
|
+
when "fatal" then log.level = Logger::FATAL
|
51
|
+
else log.level = Logger::INFO
|
52
|
+
end
|
56
53
|
log
|
57
54
|
end
|
58
55
|
|
data/lib/new_relic/version.rb
CHANGED
@@ -4,7 +4,7 @@ module NewRelic
|
|
4
4
|
MAJOR = 2
|
5
5
|
MINOR = 14
|
6
6
|
TINY = 1
|
7
|
-
BUILD =
|
7
|
+
BUILD = nil #'0' # Set to nil for a release, 'beta1', 'alpha', etc for prerelease builds
|
8
8
|
STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
|
9
9
|
end
|
10
10
|
|
data/newrelic_rpm.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{newrelic_rpm}
|
8
|
-
s.version = "2.14.1
|
8
|
+
s.version = "2.14.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Bill Kayser", "Justin George"]
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 53
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 14
|
9
9
|
- 1
|
10
|
-
|
11
|
-
version: 2.14.1.logging1
|
10
|
+
version: 2.14.1
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Bill Kayser
|