profile_it 0.2.8.1 → 0.2.9
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.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +7 -0
- data/lib/profile_it/agent.rb +3 -0
- data/lib/profile_it/agent/reporting.rb +3 -3
- data/lib/profile_it/config.rb +2 -3
- data/lib/profile_it/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad0ef8e0f7cfe776309bff35e783e2bb5d158775
|
4
|
+
data.tar.gz: 44c7fafa8a21ed86284d05c99bcf494e399e1d2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 442b841c89532f6dc0bea66b9460bcf891400e2af50393facdaac3605246fa7247959a17a9d5e81a2b57c745045dd673163010e61b20ddd942795d99cbb9e3f3
|
7
|
+
data.tar.gz: a09b049faf4fa8e2fe3a8042daa41bc4ea2979b99418f021c23c95f083decc7523f20be37e7b1d394aad5a000ab1b5ee97662e51a07e3debc4e46d8b72c5db9c
|
data/CHANGELOG.markdown
CHANGED
data/lib/profile_it/agent.rb
CHANGED
@@ -49,6 +49,9 @@ module ProfileIt
|
|
49
49
|
if !config.settings['profile']
|
50
50
|
logger.warn "Profiling isn't enabled for the [#{environment.env}] environment."
|
51
51
|
return false
|
52
|
+
elsif !config.settings['key']
|
53
|
+
logger.warn "The config file doesn't specify an account key. See https://profileit.io/help for a install instructions."
|
54
|
+
return false
|
52
55
|
# elsif !environment.app_server
|
53
56
|
# logger.warn "Couldn't find a supported app server. Not starting agent."
|
54
57
|
# return false
|
@@ -52,11 +52,11 @@ module ProfileIt
|
|
52
52
|
logger.debug "got response: #{response.inspect}"
|
53
53
|
case response
|
54
54
|
when Net::HTTPSuccess, Net::HTTPNotModified
|
55
|
-
logger.debug "
|
55
|
+
logger.debug "Send Profile: OK"
|
56
56
|
when Net::HTTPBadRequest
|
57
|
-
logger.warn "
|
57
|
+
logger.warn "Send Profile: FAILED: The Account Key [#{config.settings['key']}] is invalid."
|
58
58
|
else
|
59
|
-
logger.
|
59
|
+
logger.warn "Send Profile: FAILED: #{response.inspect}"
|
60
60
|
end
|
61
61
|
rescue Exception
|
62
62
|
logger.debug "Exception sending request to server: #{$!.message}"
|
data/lib/profile_it/config.rb
CHANGED
@@ -2,9 +2,8 @@ module ProfileIt
|
|
2
2
|
class Config
|
3
3
|
DEFAULTS = {
|
4
4
|
'host' => 'https://profileit.io',
|
5
|
-
'log_level' => '
|
6
|
-
'name' => 'LOCAL APP'
|
7
|
-
'key' => 'DEV'
|
5
|
+
'log_level' => 'info', # changed from info for dev
|
6
|
+
'name' => 'LOCAL APP'
|
8
7
|
}
|
9
8
|
|
10
9
|
def initialize(config_path = nil)
|
data/lib/profile_it/version.rb
CHANGED