infinum_graylog 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9ebab5ef35a4fdfcd2e902c6e31cb1e6fe372bea0f8eefb149c378ebd711f1a
|
4
|
+
data.tar.gz: dc79d5fadab1d6e1714aabe92491816b669119ca0472c7c9e56749d02bb78e2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4feea4563017feeced5471c1fe3efb55076c158f14deeb41d7997ce13d81f637486858996ea2a90abc32e7e0cdc75bc4a002b605ad4ce9a94bfc5a23d1bf5ad6
|
7
|
+
data.tar.gz: f616ace8c2e7023b40fa0f21795daae5c3e6d64a5b672a7d50cae242f075872a37b0937462736aca90fa30cb58034f615dbaa0e9dce3852fe87526e59c5d48f1
|
@@ -7,14 +7,14 @@ module InfinumGraylog
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def format
|
10
|
-
return if
|
10
|
+
return if configuration.skip_statuses.include?(event_status)
|
11
11
|
|
12
12
|
{
|
13
13
|
short_message: event_name,
|
14
14
|
type: 'action_controller',
|
15
15
|
request_id: event.transaction_id,
|
16
16
|
duration: event.duration,
|
17
|
-
application:
|
17
|
+
application: configuration.application,
|
18
18
|
status: event_status
|
19
19
|
}.reverse_merge(event.payload)
|
20
20
|
end
|
@@ -30,5 +30,9 @@ module InfinumGraylog
|
|
30
30
|
return 0 if event.payload[:exception].blank?
|
31
31
|
ActionDispatch::ExceptionWrapper.status_code_for_exception(event.payload[:exception].first)
|
32
32
|
end
|
33
|
+
|
34
|
+
def configuration
|
35
|
+
InfinumGraylog.configuration
|
36
|
+
end
|
33
37
|
end
|
34
38
|
end
|
@@ -18,7 +18,7 @@ module InfinumGraylog
|
|
18
18
|
type: 'sql',
|
19
19
|
request_id: event.transaction_id,
|
20
20
|
duration: event.duration,
|
21
|
-
application:
|
21
|
+
application: configuration.application
|
22
22
|
}
|
23
23
|
end
|
24
24
|
|
@@ -39,5 +39,9 @@ module InfinumGraylog
|
|
39
39
|
|
40
40
|
sql
|
41
41
|
end
|
42
|
+
|
43
|
+
def configuration
|
44
|
+
InfinumGraylog.configuration
|
45
|
+
end
|
42
46
|
end
|
43
47
|
end
|