amphora 8.4.2-dev.8.0 → 8.4.2-dev.9.0

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.
package/lib/render.js CHANGED
@@ -123,10 +123,16 @@ function renderPage(uri, req, res, hrStart) {
123
123
  locals.query = req.query;
124
124
  locals.extension = extension;
125
125
 
126
+ log('INFO', '====INSIDE RENDER PAGE', { url: _.get(res, 'locals.url'), hostname: req.hostname });
127
+
126
128
  // look up page alias' component instance
127
129
  return getDBObject(uri)
128
- .then(formDataFromLayout(locals, uri))
130
+ .then(() => {
131
+ log('INFO', '====getdboject RESPONSE', { uri });
132
+ return formDataFromLayout(locals, uri)
133
+ })
129
134
  .then(data => {
135
+ log('INFO', '====formDataFromLayout RESPONSE', { data });
130
136
  logTime(hrStart, uri);
131
137
  return data;
132
138
  })
package/lib/responses.js CHANGED
@@ -364,6 +364,7 @@ function explicitError(err, res) {
364
364
  */
365
365
  function handleError(res) {
366
366
  return function (err) {
367
+ log('INFO', '====handleError function RESPONSE', { res, err });
367
368
  if (err.status && err.name !== 'NotFoundError') {
368
369
  // If we're in this block, the error has a defined `status` property and
369
370
  // the error should be directed out immediately
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amphora",
3
- "version": "8.4.2-dev.8.0",
3
+ "version": "8.4.2-dev.9.0",
4
4
  "description": "An API mixin for Express that saves, publishes and composes data with the key-value store of your choice.",
5
5
  "main": "index.js",
6
6
  "scripts": {