infinum_graylog 0.2.1 → 0.3.0

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
  SHA256:
3
- metadata.gz: 9028eecb476bc20d2a8b90e7629ee5271ee51e6f69f28c17501c6beb58085792
4
- data.tar.gz: c52e45e3aa76bd503f4d0cbdfd5b19bff4a826e328d1f7b739b9c303a76b1d8e
3
+ metadata.gz: a9ebab5ef35a4fdfcd2e902c6e31cb1e6fe372bea0f8eefb149c378ebd711f1a
4
+ data.tar.gz: dc79d5fadab1d6e1714aabe92491816b669119ca0472c7c9e56749d02bb78e2e
5
5
  SHA512:
6
- metadata.gz: bc4122fea0f3330775be022853c3dbdfebe45e37e63e2cc1a70883cb88460c8b1965283851a23e7e0c0b79c362ed2e87b29e0aef2106518f1bf6265498524d46
7
- data.tar.gz: d5b861001e9b8fd31877a59fa6798a46424a2c282843907e2d99f9bae3b5d9fc971a5389308d9826d6754ef62f3b39106507b9ed8fe422c0501de33a42c274c8
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 InfinumGraylog.configuration.skip_statuses.include?(event_status)
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: 'tvornica-snova-development',
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: 'tvornica-snova-development'
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
@@ -1,3 +1,3 @@
1
1
  module InfinumGraylog
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infinum_graylog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic