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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df131b281699cdc2eddac9b0afc0765f15363fb1
|
4
|
+
data.tar.gz: 9ef206637e1d09ef928c6b02c712051b6f47d86d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
64
|
+
audit(:fatal, format(:fatal, prepend_caller_information(data), flow_identifier))
|
65
65
|
end
|
66
66
|
|
67
67
|
def <<(data, flow_identifier = nil)
|
68
|
-
|
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
|
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.
|
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-
|
12
|
+
date: 2016-10-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|