@@ -259,13 +259,9 @@ function createWrapFunction (prefix = '', override = '') {
259
259
const operation = name . match ( / ^ ( .+ ?) ( S y n c ) ? ( \. n a t i v e ) ? $ / ) [ 1 ]
260
260
261
261
return function ( ) {
262
- console . log ( `wrapFunction => function(): name: ${ name } , method: ${ method } , operation: ${ operation } ` )
263
- console . log ( 'startChannel._stores' , startChannel . _stores )
264
- if ( ! startChannel . hasSubscribers ) {
265
- console . log ( `NO SUBSCRIBERS - name: ${ name } , method: ${ method } , operation: ${ operation } ` )
262
+ if ( ! startChannel . hasSubscribers )
266
263
return original . apply ( this , arguments )
267
- }
268
- console . log ( `HAS_SUBSCRIBERS - name: ${ name } , method: ${ method } , operation: ${ operation } ` )
264
+
269
265
const lastIndex = arguments . length - 1
270
266
const cb = typeof arguments [ lastIndex ] === 'function' && arguments [ lastIndex ]
271
267
const params = getMethodParamsRelationByPrefix ( prefix ) [ operation ]
@@ -277,7 +273,6 @@ function createWrapFunction (prefix = '', override = '') {
277
273
ctx . error = error
278
274
errorChannel . publish ( ctx )
279
275
}
280
- console . log ( 'finishChannel.runStores(ctx, cb)' )
281
276
return finishChannel . runStores ( ctx , cb )
282
277
}
283
278
@@ -288,7 +283,6 @@ function createWrapFunction (prefix = '', override = '') {
288
283
}
289
284
290
285
return startChannel . runStores ( ctx , ( ) => {
291
- console . log ( `startChannel.runStores: name: ${ name } , method: ${ method } , operation: ${ operation } ` )
292
286
if ( abortController . signal . aborted ) {
293
287
const error = abortController . signal . reason || new Error ( 'Aborted' )
294
288
@@ -326,7 +320,6 @@ function createWrapFunction (prefix = '', override = '') {
326
320
}
327
321
)
328
322
}
329
- console . log ( 'finishChannel.runStores(ctx, () => {}): L324' )
330
323
finishChannel . runStores ( ctx , ( ) => { } )
331
324
332
325
return result
0 commit comments