@adobe/helix-html-pipeline 1.8.10 → 1.8.11
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/html-pipe.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.8.11](https://github.com/adobe/helix-html-pipeline/compare/v1.8.10...v1.8.11) (2022-11-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* use info for response status < 500 ([#194](https://github.com/adobe/helix-html-pipeline/issues/194)) ([5d8424d](https://github.com/adobe/helix-html-pipeline/commit/5d8424d40b4883993d7f3f5488680ec1924f7bd5))
|
|
7
|
+
|
|
1
8
|
## [1.8.10](https://github.com/adobe/helix-html-pipeline/compare/v1.8.9...v1.8.10) (2022-11-11)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/html-pipe.js
CHANGED
|
@@ -78,7 +78,8 @@ export async function htmlPipe(state, req) {
|
|
|
78
78
|
|
|
79
79
|
if (res.error) {
|
|
80
80
|
// if content loading produced an error, we're done.
|
|
81
|
-
|
|
81
|
+
const level = res.status >= 500 ? 'error' : 'info';
|
|
82
|
+
log[level](`pipeline status: ${res.status} ${res.error}`);
|
|
82
83
|
res.headers.set('x-error', cleanupHeaderValue(res.error));
|
|
83
84
|
if (res.status < 500) {
|
|
84
85
|
await setCustomResponseHeaders(state, req, res);
|