Skip to content

Commit

Permalink
fix: remove layer console (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
echosoar committed Aug 5, 2020
1 parent 6769cd4 commit 51b144b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/egg-layer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module.exports = engine => {
? context.request.body
: JSON.stringify(context.request.body),
headers: context.headers,
followRedirect: false,
},
(error, response, body) => {
context.res = response;
Expand Down
1 change: 1 addition & 0 deletions packages/express-layer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = engine => {
? context.request.body
: JSON.stringify(context.request.body),
headers: context.headers,
followRedirect: false,
},
(error, response, body) => {
context.res = response;
Expand Down
1 change: 1 addition & 0 deletions packages/koa-layer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = engine => {
? context.request.body
: JSON.stringify(context.request.body),
headers: context.headers,
followRedirect: false,
},
(error, response, body) => {
context.res = response;
Expand Down
4 changes: 1 addition & 3 deletions packages/serverless-spec-builder/wrapper.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ const layers = [];
try {
const <%=layer.name%> = require('<%=layer.path%>');
layers.push(<%=layer.name%>);
} catch(e) {
console.error('<%=layer.type%> layer "<%=layer.path%>" not install', e);
}
} catch(e) { }
<% }); %>

let starter;
Expand Down
4 changes: 1 addition & 3 deletions packages/serverless-spec-builder/wrapper_app.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const layers = [];
try {
const <%=layer.name%> = require('<%=layer.path%>');
layers.push(<%=layer.name%>);
} catch(e) {
console.error('<%=layer.type%> layer "<%=layer.path%>" not install', e);
}
} catch(e) { }
<% }); %>

let runtime;
Expand Down

0 comments on commit 51b144b

Please sign in to comment.