@@ -127,9 +127,9 @@ class Client extends EventEmitter {
127127 * @param {number= } opts.left (if not set, calculated automatically)
128128 */
129129 start ( opts ) {
130- debug ( 'send `start`' )
131130 opts = this . _defaultAnnounceOpts ( opts )
132131 opts . event = 'started'
132+ debug ( 'send `start` %o' , opts )
133133 this . _announce ( opts )
134134
135135 // start announcing on intervals
@@ -147,9 +147,9 @@ class Client extends EventEmitter {
147147 * @param {number= } opts.left (if not set, calculated automatically)
148148 */
149149 stop ( opts ) {
150- debug ( 'send `stop`' )
151150 opts = this . _defaultAnnounceOpts ( opts )
152151 opts . event = 'stopped'
152+ debug ( 'send `stop` %o' , opts )
153153 this . _announce ( opts )
154154 }
155155
@@ -162,10 +162,10 @@ class Client extends EventEmitter {
162162 * @param {number= } opts.left (if not set, calculated automatically)
163163 */
164164 complete ( opts ) {
165- debug ( 'send `complete`' )
166165 if ( ! opts ) opts = { }
167166 opts = this . _defaultAnnounceOpts ( opts )
168167 opts . event = 'completed'
168+ debug ( 'send `complete` %o' , opts )
169169 this . _announce ( opts )
170170 }
171171
@@ -178,9 +178,9 @@ class Client extends EventEmitter {
178178 * @param {number= } opts.left (if not set, calculated automatically)
179179 */
180180 update ( opts ) {
181- debug ( 'send `update`' )
182181 opts = this . _defaultAnnounceOpts ( opts )
183182 if ( opts . event ) delete opts . event
183+ debug ( 'send `update` %o' , opts )
184184 this . _announce ( opts )
185185 }
186186
0 commit comments