From 2212eb17aa7c3c9a8922cfa45d41da31c613dc17 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Sun, 28 Apr 2024 09:18:04 +0800 Subject: [PATCH] optimize: send record msg error --- src/common/utils/audio.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/utils/audio.ts b/src/common/utils/audio.ts index d7602c5d..246de8a0 100644 --- a/src/common/utils/audio.ts +++ b/src/common/utils/audio.ts @@ -1,7 +1,7 @@ import fs from 'fs'; import { encode, getDuration, getWavFileInfo, isWav } from 'silk-wasm'; import fsPromise from 'fs/promises'; -import { log } from './log'; +import { log, logError } from './log'; import path from 'node:path'; import { v4 as uuidv4 } from 'uuid'; import { spawn } from 'node:child_process'; @@ -129,7 +129,7 @@ export async function encodeSilk(filePath: string) { }; } } catch (error: any) { - log('convert silk failed', error.stack); + logError('convert silk failed', error.stack); return {}; } }