monitor_me 0.1.4 → 0.1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/monitor_me/version.rb +1 -1
- data/lib/monitor_me.rb +9 -6
- 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: d510cdca15ecd93fb17f179d7d155f948a9e0d9e1d35597c664c9c158cd3482d
|
4
|
+
data.tar.gz: 15eba823213e7901c431a57c7545fa8f86f791f8d99384bc0ade4d3a3a1ff129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70a5f8f80b9eab1d4bbce273dd83ec9fb6cafb7b1d66d49b86e7c5da73747dd6f9f97a7c453057fc1af1cb6c174a12219a7021a51796ca62591dea85508f638c
|
7
|
+
data.tar.gz: 3e45ee8c47387226a5ffc36e80ae011d79456db22deaa5eb0c83953ea1e98e3cb52cadea4ab81cc5b597e56942b111c5592e5afcb8c70039a7627aec95cc949a
|
data/lib/monitor_me/version.rb
CHANGED
data/lib/monitor_me.rb
CHANGED
@@ -4,15 +4,18 @@ class MonitorMe
|
|
4
4
|
|
5
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 record.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
|