We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 256016f commit 681e351Copy full SHA for 681e351
files/entry.js
@@ -34,7 +34,9 @@ export async function index(context) {
34
rawBody
35
};
36
37
- log(`Request: ${JSON.stringify(request)}`);
+ if (debug) {
38
+ context.log(`Request: ${JSON.stringify(request)}`);
39
+ }
40
41
const rendered = await app.render(request);
42
@@ -47,16 +49,9 @@ export async function index(context) {
47
49
48
50
51
- log(`Response: ${JSON.stringify(response)}`);
52
53
+ context.log(`Response: ${JSON.stringify(response)}`);
54
55
56
context.res = response;
-
- /**
- * @param {string} message
- */
57
- function log(message) {
58
- if (debug) {
59
- context.log(message);
60
- }
61
62
}
0 commit comments