File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
packages/web/docs/src/content Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,14 @@ export const gatewayConfig = defineConfig({
62
62
+ plugins() {
63
63
return [
64
64
{
65
+ onRequest({ serverContext }) {
66
+ - log.info('Got request...');
67
+ + serverContext.log.info('Got request...');
68
+ },
69
+ onParams({ context }) {
70
+ - log.info('Params...');
71
+ + context.log.info('Params...');
72
+ },
65
73
onExecute({ context }) {
66
74
- log.info('Executing...');
67
75
+ context.log.info('Executing...');
@@ -78,6 +86,10 @@ export const gatewayConfig = defineConfig({
78
86
- log.info('Fetching data...');
79
87
+ context.log.info('Fetching data...');
80
88
},
89
+ onResponse({ serverContext }) {
90
+ - log.info('Responding...');
91
+ + serverContext.log.info('Responding...');
92
+ },
81
93
},
82
94
];
83
95
},
Original file line number Diff line number Diff line change @@ -357,6 +357,14 @@ export const gatewayConfig = defineConfig({
357
357
+ plugins() {
358
358
return [
359
359
{
360
+ onRequest({ serverContext }) {
361
+ - log.info('Got request...');
362
+ + serverContext.log.info('Got request...');
363
+ },
364
+ onParams({ context }) {
365
+ - log.info('Params...');
366
+ + context.log.info('Params...');
367
+ },
360
368
onExecute({ context }) {
361
369
- log.info('Executing...');
362
370
+ context.log.info('Executing...');
@@ -373,6 +381,10 @@ export const gatewayConfig = defineConfig({
373
381
- log.info('Fetching data...');
374
382
+ context.log.info('Fetching data...');
375
383
},
384
+ onResponse({ serverContext }) {
385
+ - log.info('Responding...');
386
+ + serverContext.log.info('Responding...');
387
+ },
376
388
},
377
389
];
378
390
},
You can’t perform that action at this time.
0 commit comments