asana_exception_notifier 0.2.1 → 0.2.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a170f37a6fd2fb5b9b425575e3a57b66c5b59d03
|
4
|
+
data.tar.gz: 9442fd0a1ec8c08d44bb1cdc37779a5710bacfe6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b25485c8d9c9ca896b708ed9784ba214028670550584391aa12fdd083b441ba72357ce5bf9a8faf68f7618b74dc827ec89ce1a7daf6ea05366cd05ec6fb56c0
|
7
|
+
data.tar.gz: 3591d5bb1dc40e135437045ae8e38dc78a1e9349a47cc3b493578e3ed777d26182639544c9d51f671f6e6b4d3313770ecc5573dccdd7bd05b0db5cdb861bd9dc
|
@@ -45,7 +45,6 @@ module AsanaExceptionNotifier
|
|
45
45
|
env: @request.respond_to?(:filtered_env) ? @request.filtered_env : @env,
|
46
46
|
data: (@env.blank? ? {} : @env.fetch(:'exception_notifier.exception_data', {})).merge(@options[:data] || {}),
|
47
47
|
exception_data: exception_data,
|
48
|
-
exception_service_data: exception_service,
|
49
48
|
request_data: setup_env_params,
|
50
49
|
parameters: @request.respond_to?(:filtered_parameters) ? filter_params(@request.filtered_parameters) : filter_params(request_params),
|
51
50
|
session: filter_params(session.respond_to?(:to_hash) ? session.to_hash : session.to_h),
|
@@ -69,19 +68,21 @@ module AsanaExceptionNotifier
|
|
69
68
|
end
|
70
69
|
|
71
70
|
def exception_data
|
72
|
-
|
71
|
+
exception_service.merge(
|
73
72
|
error_class: @exception.class.to_s,
|
74
73
|
message: @exception.respond_to?(:message) ? @exception.message : exception.inspect,
|
75
74
|
backtrace: @exception.respond_to?(:backtrace) ? (@exception.backtrace || []).join("\n") : nil,
|
76
75
|
cause: @exception.respond_to?(:cause) ? @exception.cause : nil
|
77
|
-
|
76
|
+
)
|
78
77
|
end
|
79
78
|
|
80
79
|
def exception_service
|
80
|
+
hash = Hash.new
|
81
81
|
@exception.instance_variables.select do |ivar|
|
82
82
|
attr_value = @exception.instance_variable_get(ivar)
|
83
|
-
|
83
|
+
hash["#{ivar}"] = attr_value if attr_value.present?
|
84
84
|
end
|
85
|
+
hash
|
85
86
|
end
|
86
87
|
|
87
88
|
def setup_env_params
|