arkaan 1.2.5 → 1.2.6
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 +4 -4
- data/lib/arkaan/utils/controller_without_filter.rb +10 -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: 773ec0d2f77e7bad5ef3b8b9b3b8bfa4a5d8daa4
|
|
4
|
+
data.tar.gz: d8d25d69721b5ec29721faf6e96886908fdf42ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ca61cd3cb1fc49bfdb071eb655637d0d002c28e08bf7f05c703d2b00d02a8b69b5d58a27aef8a9d4b6b3d298ff7a2f98257e05e40e875953243fd47b7c753f4
|
|
7
|
+
data.tar.gz: 6b1fad6cf2b557008f1029aee3e8a456ad75c86fc6191c602941fb306275692932c50a69a8e6f993b01c8615d32f8ef42c66d865c05e6f7f1d23ca4bdd47e995
|
|
@@ -135,7 +135,16 @@ module Arkaan
|
|
|
135
135
|
def custom_error(status, path)
|
|
136
136
|
route, field, error = path.split('.')
|
|
137
137
|
docs = settings.errors[route][field][error] rescue ''
|
|
138
|
-
logger.info(
|
|
138
|
+
logger.info('==================== ERROR ====================')
|
|
139
|
+
logger.info("Status : #{status}")
|
|
140
|
+
logger.info("Error message : #{path}")
|
|
141
|
+
logger.info("Parameters were :")
|
|
142
|
+
params.each do |key, value|
|
|
143
|
+
logger.info("#{key} :: #{value}")
|
|
144
|
+
end
|
|
145
|
+
request.body.rewind
|
|
146
|
+
logger.info("JSON body was : #{request.body.read.to_s}")
|
|
147
|
+
logger.info('================== END ERROR ==================')
|
|
139
148
|
halt status, {status: status, field: field, error: error, docs: docs}.to_json
|
|
140
149
|
end
|
|
141
150
|
|