monitor_me 0.1.3 → 0.1.5.5
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/lib/monitor_me/version.rb +1 -1
- data/lib/monitor_me.rb +10 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0423b1fd4b19587f941e238e02bed27c498e95d9c28552ce730643005dbe6913
|
4
|
+
data.tar.gz: ca735b2aa84f4942119d5bd1b009c83bba4fb4c9197e6d103f3978d32a2a3614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1820ba8d0f4c589c627ca56cfa5f1bdbd4d4edc412fd624afc5b6c314c2a70dfd90bf5944ed45963346857db9903ce86cea7209f70d54e15c3282bbcd10def4
|
7
|
+
data.tar.gz: ada9c7ffc9396436ec9b79debaa23671ca95e09d668a2e71d5f821cee54bfb814c55704900c74fc7ec79a02ee7fda8320471f370fb1f4a3b71fce215768da191
|
data/lib/monitor_me/version.rb
CHANGED
data/lib/monitor_me.rb
CHANGED
@@ -2,17 +2,20 @@ require "monitor_me/version"
|
|
2
2
|
|
3
3
|
class MonitorMe
|
4
4
|
|
5
|
-
def log_error(record)
|
5
|
+
def self.log_error(record)
|
6
6
|
if MONITOR_APIKEY.blank?
|
7
|
-
|
8
|
-
|
7
|
+
puts "Oops. Cannot send response without apikey."
|
8
|
+
puts "Please provide an apikey in this format in config/environments/*.rb:"
|
9
|
+
puts "\nMONITOR_APIKEY = 'apikey' # note it is strongly recommended to use ENV variables in non-development environments!"
|
9
10
|
else
|
10
|
-
|
11
|
-
|
11
|
+
puts "LOGGIN ERROR FOR #{record.class.name} RECORD\n"
|
12
|
+
puts record.errors.full_messages
|
13
|
+
puts recird.to_yaml
|
14
|
+
puts debug(record)
|
12
15
|
end
|
13
16
|
end
|
14
17
|
|
15
|
-
def self.
|
16
|
-
|
18
|
+
def self.puts_api_key_global
|
19
|
+
puts "#{MONITOR_APIKEY}" unless MONITOR_APIKEY.blank?
|
17
20
|
end
|
18
21
|
end
|