File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
packages/runtime/src/plugins Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,12 @@ export function useSubgraphExecuteDebug<
11
11
fetchAPI = yoga . fetchAPI ;
12
12
} ,
13
13
onSubgraphExecute ( { executionRequest } ) {
14
- let log = executionRequest . context ?. log . child ( {
15
- subgraphExecuteId : fetchAPI . crypto . randomUUID ( ) ,
16
- } ) ;
14
+ let log = executionRequest . context ?. log . child (
15
+ '[useSubgraphExecuteDebug] ' ,
16
+ ) ;
17
17
if ( ! log ) {
18
18
throw new Error ( 'Logger is not available in the execution context' ) ;
19
19
}
20
- // we intentionally mutate the executionRequest context here
21
- // to avoid losing the context ref and improve perf
22
- executionRequest . context ! . log = log ;
23
- log = log . child ( '[useSubgraphExecuteDebug] ' ) ;
24
20
log . debug ( ( ) => {
25
21
const logData : Record < string , any > = { } ;
26
22
if ( executionRequest . document ) {
You can’t perform that action at this time.
0 commit comments