Skip to content

Commit bbcf40c

Browse files
authored
fix: to show 'Queue restoration timeout' only once (#1013)
Co-authored-by: Sunita Prajapati <>
1 parent 0ab454f commit bbcf40c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/core/src/plugins/QueueFlushingPlugin.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ export class QueueFlushingPlugin extends UtilityPlugin {
8484
}
8585
} catch (e) {
8686
// If the queue is not restored before the timeout, we will notify but not block flushing events
87-
this.analytics?.reportInternalError(
88-
new SegmentError(
89-
ErrorType.InitializationError,
90-
'Queue restoration timeout',
91-
e
92-
)
93-
);
94-
9587
if (this.timeoutWarned === false) {
88+
this.analytics?.reportInternalError(
89+
new SegmentError(
90+
ErrorType.InitializationError,
91+
'Queue restoration timeout',
92+
e
93+
)
94+
);
95+
9696
this.analytics?.logger.warn(
9797
'Flush triggered but queue restoration and settings loading not complete. Flush will be retried.',
9898
e

0 commit comments

Comments
 (0)