diff --git a/packages/@ama-sdk/core/src/plugins/timeout/timeout.fetch.ts b/packages/@ama-sdk/core/src/plugins/timeout/timeout.fetch.ts index c8caf23864..b0135b2b85 100644 --- a/packages/@ama-sdk/core/src/plugins/timeout/timeout.fetch.ts +++ b/packages/@ama-sdk/core/src/plugins/timeout/timeout.fetch.ts @@ -105,9 +105,11 @@ export class TimeoutFetch implements FetchPlugin { const timerCallback = (pauseStatus: TimeoutStatus) => { if (timer && pauseStatus === 'timeoutStopped') { clearTimeout(timer); + (context.logger || console).log('[SDK Plugins] Timeout cancelled.'); timer = undefined; } else if (!timer && pauseStatus === 'timeoutStarted') { timer = setTimeout(timeoutCallback, this.timeout); + (context.logger || console).log('[SDK Plugins] Timeout restarted.'); } }; this.timerSubscription.push(timerCallback);