refactor: add log

This commit is contained in:
Methapon2001 2023-12-01 14:30:21 +07:00
parent 82228da8fa
commit 04a84c7878
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -43,6 +43,8 @@ export async function handler(key: string, event: string): Promise<boolean> {
const rec = await popInfo(pathname);
console.info(`[AMQ] Key: ${key} - ${rec ?? 'Not Found.'}`)
const result = rec
? await handleFoundRecord(rec, cachedBuffer[key], cachedMetadata[key])
: await handleNotFoundRecord(pathname, cachedBuffer[key], cachedMetadata[key]);