mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-18 20:31:40 +03:00
gall watch/leave traces added
This commit is contained in:
parent
09017729bc
commit
c59813e367
@ -813,6 +813,7 @@
|
|||||||
::
|
::
|
||||||
++ subscribe-to-app
|
++ subscribe-to-app
|
||||||
|= [app=term =inbound-request:eyre]
|
|= [app=term =inbound-request:eyre]
|
||||||
|
%- (trace 2 |.("subscribing to {<app>} on {</http-response/[eyre-id]>}"))
|
||||||
^- (list move)
|
^- (list move)
|
||||||
:~ :* duct %pass /watch-response/[eyre-id]
|
:~ :* duct %pass /watch-response/[eyre-id]
|
||||||
%g %deal [our our] app
|
%g %deal [our our] app
|
||||||
@ -842,6 +843,7 @@
|
|||||||
%app
|
%app
|
||||||
:_ state
|
:_ state
|
||||||
:_ ~
|
:_ ~
|
||||||
|
%- (trace 2 |.("leaving subscription to {<app.action.u.connection>}"))
|
||||||
:* duct %pass /watch-response/[eyre-id]
|
:* duct %pass /watch-response/[eyre-id]
|
||||||
%g %deal [our our] app.action.u.connection
|
%g %deal [our our] app.action.u.connection
|
||||||
%leave ~
|
%leave ~
|
||||||
@ -1437,6 +1439,7 @@
|
|||||||
^- move
|
^- move
|
||||||
:^ duct %pass
|
:^ duct %pass
|
||||||
(subscription-wire channel-id request-id ship app)
|
(subscription-wire channel-id request-id ship app)
|
||||||
|
%- (trace 2 |.("subscribing to {<app>} on {<path>}"))
|
||||||
:* %g %deal [our ship] app
|
:* %g %deal [our ship] app
|
||||||
`task:agent:gall`[%watch path]
|
`task:agent:gall`[%watch path]
|
||||||
==
|
==
|
||||||
@ -1473,6 +1476,7 @@
|
|||||||
=, u.maybe-subscription
|
=, u.maybe-subscription
|
||||||
:^ duc %pass
|
:^ duc %pass
|
||||||
(subscription-wire channel-id subscription-id.i.requests ship app)
|
(subscription-wire channel-id subscription-id.i.requests ship app)
|
||||||
|
%- (trace 2 |.("leaving subscription to {<app>}"))
|
||||||
:* %g %deal [our ship] app
|
:* %g %deal [our ship] app
|
||||||
`task:agent:gall`[%leave ~]
|
`task:agent:gall`[%leave ~]
|
||||||
==
|
==
|
||||||
@ -1520,6 +1524,7 @@
|
|||||||
:_ state
|
:_ state
|
||||||
:_ ~
|
:_ ~
|
||||||
^- move
|
^- move
|
||||||
|
%- (trace 2 |.("leaving subscription to {<app>}"))
|
||||||
:^ duct %pass
|
:^ duct %pass
|
||||||
(subscription-wire channel-id request-id ship app)
|
(subscription-wire channel-id request-id ship app)
|
||||||
[%g %deal [our ship] app `task:agent:gall`[%leave ~]]
|
[%g %deal [our ship] app `task:agent:gall`[%leave ~]]
|
||||||
@ -1619,6 +1624,7 @@
|
|||||||
:: - only clog on %facts, which have a subscription associated,
|
:: - only clog on %facts, which have a subscription associated,
|
||||||
:: - and already checked whether we still have that subscription.
|
:: - and already checked whether we still have that subscription.
|
||||||
=+ (~(got by subscriptions.u.channel) request-id)
|
=+ (~(got by subscriptions.u.channel) request-id)
|
||||||
|
%- (trace 2 |.("leaving subscription to {<app>}"))
|
||||||
:^ duct %pass
|
:^ duct %pass
|
||||||
(subscription-wire channel-id request-id ship app)
|
(subscription-wire channel-id request-id ship app)
|
||||||
[%g %deal [our ship] app %leave ~]
|
[%g %deal [our ship] app %leave ~]
|
||||||
@ -1834,6 +1840,7 @@
|
|||||||
%+ turn ~(tap by subscriptions.session)
|
%+ turn ~(tap by subscriptions.session)
|
||||||
|= [request-id=@ud ship=@p app=term =path duc=^duct]
|
|= [request-id=@ud ship=@p app=term =path duc=^duct]
|
||||||
^- move
|
^- move
|
||||||
|
%- (trace 2 |.("leaving subscription to {<app>}"))
|
||||||
:^ duc %pass
|
:^ duc %pass
|
||||||
(subscription-wire channel-id request-id ship app)
|
(subscription-wire channel-id request-id ship app)
|
||||||
[%g %deal [our ship] app %leave ~]
|
[%g %deal [our ship] app %leave ~]
|
||||||
@ -1849,6 +1856,7 @@
|
|||||||
?. ?=(%app -.action.connection)
|
?. ?=(%app -.action.connection)
|
||||||
~
|
~
|
||||||
:_ ~
|
:_ ~
|
||||||
|
%- (trace 2 |.("leaving subscription to {<app.action.connection>}"))
|
||||||
:* duct %pass /watch-response/[eyre-id]
|
:* duct %pass /watch-response/[eyre-id]
|
||||||
%g %deal [our our] app.action.connection
|
%g %deal [our our] app.action.connection
|
||||||
%leave ~
|
%leave ~
|
||||||
@ -1994,6 +2002,8 @@
|
|||||||
?. ?=(%app -.action.u.connection-state)
|
?. ?=(%app -.action.u.connection-state)
|
||||||
~
|
~
|
||||||
:_ ~
|
:_ ~
|
||||||
|
%- %+ trace 2
|
||||||
|
|.("leaving subscription to {<app.action.u.connection-state>}")
|
||||||
:* duct %pass /watch-response/[eyre-id]
|
:* duct %pass /watch-response/[eyre-id]
|
||||||
%g %deal [our our] app.action.u.connection-state
|
%g %deal [our our] app.action.u.connection-state
|
||||||
%leave ~
|
%leave ~
|
||||||
|
Loading…
Reference in New Issue
Block a user