File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -237,10 +237,7 @@ class BrowserClientImpl extends LDClientImpl {
237237 identifyOptionsWithUpdatedDefaults . sheddable = true ;
238238 }
239239
240- const res = await super . identify (
241- context ,
242- identifyOptionsWithUpdatedDefaults ,
243- )
240+ const res = await super . identify ( context , identifyOptionsWithUpdatedDefaults ) ;
244241
245242 this . _goalManager ?. startTracking ( ) ;
246243 return res ;
Original file line number Diff line number Diff line change @@ -379,7 +379,14 @@ export default class LDClientImpl implements LDClient {
379379 resolve ( { status : 'timeout' , timeout : identifyTimeout } as LDIdentifyTimeout ) ;
380380 } , identifyTimeout * 1000 ) ;
381381 } ) ;
382- return Promise . race ( [ callSitePromise , timeoutPromise ] ) ;
382+
383+ return Promise . race ( [ callSitePromise , timeoutPromise ] ) . then ( ( result : LDIdentifyResult ) => {
384+ if ( result . status === 'timeout' ) {
385+ this . logger ?. error ( `identify timed out after ${ identifyTimeout } seconds.` ) ;
386+ }
387+
388+ return result ;
389+ } ) ;
383390 }
384391
385392 /**
You can’t perform that action at this time.
0 commit comments