monitor_me 0.1.5.6 → 0.1.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/lib/monitor_me/version.rb +1 -1
- data/lib/monitor_me.rb +4 -4
- 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: d982cd866a5d6472b58f1f4894ff86a6e7665ab559cb4af1efe3618433fac7f8
|
4
|
+
data.tar.gz: 7b2c9c3e5bed94eeb2f766119181c57f0916b74fcfbc5baa8a622d59d12c525a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3df55336b526d2d93a7b83c759f6057f3e34afc845cf02858b2da7dbf48a0690ff31ada6d122d24677dec07621515f887e85ad0b2746d7812eb90625afe80eeb
|
7
|
+
data.tar.gz: c7f44aabdc3225bd0403f1d9e96c39352c396db6621bf86aafd89ac799e7544980dc05af7f806bc33659c53d3667d723fd28a759cc804fe6877ae45ffdcb27fd
|
data/Gemfile
CHANGED
data/lib/monitor_me/version.rb
CHANGED
data/lib/monitor_me.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
require "monitor_me/version"
|
2
|
+
require 'colorize'
|
2
3
|
|
3
4
|
class MonitorMe
|
4
5
|
|
5
6
|
def self.log_error(record)
|
6
|
-
if MONITOR_APIKEY.
|
7
|
-
puts "Oops. Cannot send response without apikey."
|
7
|
+
if MONITOR_APIKEY.nil? || MONITOR_APIKEY.empty?
|
8
|
+
puts "Oops. Cannot send response without apikey.".red
|
8
9
|
puts "Please provide an apikey in this format in config/environments/*.rb:"
|
9
10
|
puts "\nMONITOR_APIKEY = 'apikey' # note it is strongly recommended to use ENV variables in non-development environments!"
|
10
11
|
else
|
11
12
|
puts "LOGGIN ERROR FOR #{record.class.name} RECORD\n"
|
12
|
-
puts record.errors.full_messages
|
13
|
+
puts record.errors.full_messages.red
|
13
14
|
puts record.to_yaml
|
14
|
-
puts debug(record)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|