canzea 0.1.141 → 0.1.142
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/audit.rb +9 -0
- data/lib/canzea/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c06c4f7e1374e34701e265385aa9e01a9f610dca
|
4
|
+
data.tar.gz: da09138150f0058a4c3f52de1a2d70697bb0f50d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c79fdd31d7367260c7c496184c6d01715af3091a583172d0fe4d56e79836624506c0d1544e9ff52d64fbf2f67e19bcdf715057d9491f2f2120e54290178fa29
|
7
|
+
data.tar.gz: 57b024d221fbb34a4e5e6f6b78855cd31de938250f25926c155be5e8d360145737ab1f5b4262b96f83dbf48b6bb97097a5afc1e2acf09352ceb5d7f8034c2d4f
|
data/lib/audit.rb
CHANGED
@@ -28,6 +28,15 @@ class Audit
|
|
28
28
|
"result" => result
|
29
29
|
}
|
30
30
|
}
|
31
|
+
context = {
|
32
|
+
"step" => ENV['ES_STEP'],
|
33
|
+
"ref" => ENV['ES_REF'],
|
34
|
+
"role" => ENV['ES_ROLE'],
|
35
|
+
"solution" => ENV['ES_SOLUTION'],
|
36
|
+
"action" => ENV['ES_ACTION']
|
37
|
+
}
|
38
|
+
data['message'][:context] = context
|
39
|
+
|
31
40
|
pputs data.to_json
|
32
41
|
File.open(Canzea::config[:logging_root] + '/audit.log', 'a') { |file| file.puts(data.to_json) }
|
33
42
|
end
|
data/lib/canzea/version.rb
CHANGED