refactor: add log
This commit is contained in:
parent
82228da8fa
commit
04a84c7878
1 changed files with 2 additions and 0 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue