File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/firestore/src/remote Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ import {
55
55
WatchTargetChange ,
56
56
WatchTargetChangeState
57
57
} from './watch_change' ;
58
+ import { canonifyTarget } from '../core/target' ;
58
59
59
60
const LOG_TAG = 'RemoteStore' ;
60
61
@@ -331,6 +332,11 @@ function sendWatchRequest(
331
332
remoteStoreImpl : RemoteStoreImpl ,
332
333
targetData : TargetData
333
334
) : void {
335
+ logDebug (
336
+ `sendWatchRequest (target id: ${
337
+ targetData . targetId
338
+ } ) (target: ${ canonifyTarget ( targetData . target ) } )`
339
+ ) ;
334
340
remoteStoreImpl . watchChangeAggregator ! . recordPendingTargetRequest (
335
341
targetData . targetId
336
342
) ;
@@ -357,6 +363,7 @@ function sendUnwatchRequest(
357
363
remoteStoreImpl : RemoteStoreImpl ,
358
364
targetId : TargetId
359
365
) : void {
366
+ logDebug ( `sendUnwatchRequest (target id: ${ targetId } )` ) ;
360
367
remoteStoreImpl . watchChangeAggregator ! . recordPendingTargetRequest ( targetId ) ;
361
368
ensureWatchStream ( remoteStoreImpl ) . unwatch ( targetId ) ;
362
369
}
You can’t perform that action at this time.
0 commit comments