thumb generation fixes

This commit is contained in:
Adhiraj Singh
2021-08-22 15:48:50 +05:30
parent b0699a1be9
commit 48f477e0c1
3 changed files with 7 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ export const prepareWAMessageMedia = async(
uploadData.seconds = await getAudioDuration(bodyPath)
}
} catch (error) {
options.logger?.debug ({ error }, 'failed to obtain audio duration: ' + error.message)
options.logger?.info({ trace: error.stack }, 'failed to obtain extra info')
}
const {mediaUrl} = await options.upload(
createReadStream(encBodyPath),