From d83dcb5f092b816f1e43dda925156e3bc86a4340 Mon Sep 17 00:00:00 2001 From: Evans Date: Mon, 4 Nov 2024 09:55:52 +0800 Subject: [PATCH] fix: The log method in debug mode makes a recurring call --- src/lib/wavtools/lib/wav_recorder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/wavtools/lib/wav_recorder.js b/src/lib/wavtools/lib/wav_recorder.js index a4f1d045..664768fd 100644 --- a/src/lib/wavtools/lib/wav_recorder.js +++ b/src/lib/wavtools/lib/wav_recorder.js @@ -136,7 +136,7 @@ export class WavRecorder { */ log() { if (this.debug) { - this.log(...arguments); + console.log(...arguments); } return true; }