uc3-dmp-cloudwatch 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-cloudwatch/logger.rb +3 -3
- data/lib/uc3-dmp-cloudwatch/version.rb +1 -1
- 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: 160c9ff8a1b97e0f8b6704d737d8809013f2ff1ec48aa3cd13b5c97da9fc0902
|
4
|
+
data.tar.gz: 7930285e6ea0b81dde64eb7b8509dd3260d977668669cfb9016d75dc0fd4846d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d45e1fb3b5b9a6cf8ade47318496da9bf2cf47c6b3c1871fdf46e1074caee59f1ba5b300c5700158f696d88fb9eae91d830a71a4e1306d7df3b49bb1ac60492
|
7
|
+
data.tar.gz: 9de5e61ac1c5eb932f2cb7ce024f639f86ae8378d991c2dafabf04a6705abba813e24642d63a8040a2cc8f28a3bcde319bc5058382d5dbd9bf875f0e9f0b7583
|
@@ -22,7 +22,7 @@ module Uc3DmpCloudwatch
|
|
22
22
|
return false if @level == 'none' || message.nil?
|
23
23
|
|
24
24
|
_format_msg(mode: 'error', msg: message)
|
25
|
-
_format_msg(mode: 'error', msg: details)
|
25
|
+
_format_msg(mode: 'error', msg: details) if _valid_details(details: details)
|
26
26
|
_log_event(mode: 'error')
|
27
27
|
end
|
28
28
|
|
@@ -30,14 +30,14 @@ module Uc3DmpCloudwatch
|
|
30
30
|
return false if %w[none error].include?(@level) || message.nil?
|
31
31
|
|
32
32
|
_format_msg(mode: 'info', msg: message)
|
33
|
-
_format_msg(mode: 'info', msg: details)
|
33
|
+
_format_msg(mode: 'info', msg: details) if _valid_details(details: details)
|
34
34
|
end
|
35
35
|
|
36
36
|
def debug(message:, details: {})
|
37
37
|
return false if %w[none error info].include?(@level) || message.nil?
|
38
38
|
|
39
39
|
_format_msg(mode: 'debug', msg: message)
|
40
|
-
_format_msg(mode: 'debug', msg: details)
|
40
|
+
_format_msg(mode: 'debug', msg: details) if _valid_details(details: details)
|
41
41
|
end
|
42
42
|
|
43
43
|
private
|