soar_auditing_provider 1.2.1 → 1.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
  SHA1:
3
- metadata.gz: 732d3eee82fc65eaeedb72fb2e84664245afe343
4
- data.tar.gz: 668ac83c037f255dabcb06b2f7b3bdb2406ce702
3
+ metadata.gz: 6149626e5150420762fa232e103b7c44c11351ec
4
+ data.tar.gz: c8a6ff6cda349e5b002515a9a2bb7d0872cd6ac3
5
5
  SHA512:
6
- metadata.gz: 679861623460a6ecf464c784d03fc261e98084935b3f127643c2f50abf3142a0f936d66b86514ba3b7c1323135fc649001266aa5bd9b51c1d5cb32b161a34391
7
- data.tar.gz: 51c0e4b9929c02f2230adccfcaa314b4b0a41095aab92d8c3df91d1992d1ba421480a8d85c432d6435fa9cc7177d53f193062292a6ff4d7fa22df313067083ae
6
+ metadata.gz: 864e2c4be2d4f52d73a89ffe59e5127702311173f9974cdaf7234cf0c718fd29bdfa397f074f523b17f859822650af9173b398a17d47937dc75378f9fefbb51d
7
+ data.tar.gz: ecbb36ba0573869aa2fd5d1745f6b39df03ba907ee48412b74db5e145d790eb86aa6b463abc46ed178b59c2469d3798e83ef31d31317f9b7e2bd1f7c1edd1c41
@@ -78,8 +78,9 @@ module SoarAuditingProvider
78
78
  @worker.flush(timeout: timeout)
79
79
  end
80
80
 
81
- def audit_exception(exception:, level: :error, flow_id: nil)
81
+ def audit_exception(exception:, level: :error, flow_id: nil, message: nil)
82
82
  exception_message = "#{exception.class}: #{exception.message}"
83
+ exception_message = "#{message} - #{exception_message}" if message
83
84
  exception_message = exception_message + ":\n\t" + exception.backtrace.join("\n\t") if ENV['RACK_ENV'] == 'development'
84
85
  level = :error if not is_valid_audit_level?(level)
85
86
  send(level,exception_message,flow_id)
@@ -1,3 +1,3 @@
1
1
  module SoarAuditingProvider
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_auditing_provider
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst van Graan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-10-17 00:00:00.000000000 Z
12
+ date: 2016-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler