diff --git a/.changeset/tiny-singers-pump.md b/.changeset/tiny-singers-pump.md new file mode 100644 index 0000000000..f51f3ce6ca --- /dev/null +++ b/.changeset/tiny-singers-pump.md @@ -0,0 +1,6 @@ +--- +"rrweb-snapshot": patch +"rrweb": patch +--- + +Use the provided logger from player config instead of directly calling console.warn" diff --git a/packages/rrweb/src/replay/index.ts b/packages/rrweb/src/replay/index.ts index 5f1101cc23..81abc994b1 100644 --- a/packages/rrweb/src/replay/index.ts +++ b/packages/rrweb/src/replay/index.ts @@ -263,7 +263,7 @@ export class Replayer { this.virtualDom.mirror, ); } catch (e) { - console.warn(e); + this.warn(e); } this.virtualDom.destroyTree();