soar_auditing_provider 1.3.0 → 1.4.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: 6149626e5150420762fa232e103b7c44c11351ec
4
- data.tar.gz: c8a6ff6cda349e5b002515a9a2bb7d0872cd6ac3
3
+ metadata.gz: df131b281699cdc2eddac9b0afc0765f15363fb1
4
+ data.tar.gz: 9ef206637e1d09ef928c6b02c712051b6f47d86d
5
5
  SHA512:
6
- metadata.gz: 864e2c4be2d4f52d73a89ffe59e5127702311173f9974cdaf7234cf0c718fd29bdfa397f074f523b17f859822650af9173b398a17d47937dc75378f9fefbb51d
7
- data.tar.gz: ecbb36ba0573869aa2fd5d1745f6b39df03ba907ee48412b74db5e145d790eb86aa6b463abc46ed178b59c2469d3798e83ef31d31317f9b7e2bd1f7c1edd1c41
6
+ metadata.gz: 5d9f18bbc8a4c529066e6373052b29c3c00be530b839cc9e657909b8a4d771df2b07a780076b7036ad0a71254b5562c4db30aeeff58f235b41ec9434bbe5d503
7
+ data.tar.gz: 41aa9185c50b3c5093806957131ff8e4305486f0f09a695cd32a375093b2ca7c0e1306ee08e76dd85dd5ebcc7d8e1711aa9d09546a1f593b41f7e581048c470d
@@ -45,27 +45,27 @@ module SoarAuditingProvider
45
45
  end
46
46
 
47
47
  def debug(data, flow_identifier = nil)
48
- enqueue(:debug, format(:debug, prepend_caller_information(data), flow_identifier))
48
+ audit(:debug, format(:debug, prepend_caller_information(data), flow_identifier))
49
49
  end
50
50
 
51
51
  def info(data, flow_identifier = nil)
52
- enqueue(:info, format(:info, prepend_caller_information(data), flow_identifier))
52
+ audit(:info, format(:info, prepend_caller_information(data), flow_identifier))
53
53
  end
54
54
 
55
55
  def warn(data, flow_identifier = nil)
56
- enqueue(:warn, format(:warn, prepend_caller_information(data), flow_identifier))
56
+ audit(:warn, format(:warn, prepend_caller_information(data), flow_identifier))
57
57
  end
58
58
 
59
59
  def error(data, flow_identifier = nil)
60
- enqueue(:error, format(:error, prepend_caller_information(data), flow_identifier))
60
+ audit(:error, format(:error, prepend_caller_information(data), flow_identifier))
61
61
  end
62
62
 
63
63
  def fatal(data, flow_identifier = nil)
64
- enqueue(:fatal, format(:fatal, prepend_caller_information(data), flow_identifier))
64
+ audit(:fatal, format(:fatal, prepend_caller_information(data), flow_identifier))
65
65
  end
66
66
 
67
67
  def <<(data, flow_identifier = nil)
68
- enqueue(:info, format(:info, prepend_caller_information(data), flow_identifier))
68
+ audit(:info, format(:info, prepend_caller_information(data), flow_identifier))
69
69
  end
70
70
 
71
71
  def detailed_status
@@ -110,6 +110,14 @@ module SoarAuditingProvider
110
110
  flush
111
111
  end
112
112
 
113
+ def audit(level, data)
114
+ if 'true' == @configuration['direct_auditor_call']
115
+ super_class_caller(level, data)
116
+ else
117
+ enqueue(level, data)
118
+ end
119
+ end
120
+
113
121
  def enqueue(level, data)
114
122
  @worker.enqueue(level, data)
115
123
  @enqueued_audit_events += 1
@@ -1,3 +1,3 @@
1
1
  module SoarAuditingProvider
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.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.3.0
4
+ version: 1.4.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-18 00:00:00.000000000 Z
12
+ date: 2016-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler