Added even more logging

This commit is contained in:
Jeffrey Phillips Freeman 2023-10-09 10:38:15 -04:00
parent 2b21d56f95
commit d0387a3b63
No known key found for this signature in database
GPG key ID: AD914585C9406B6A

View file

@ -94,9 +94,8 @@ export default async function (req: VercelRequest, res: VercelResponse) {
// Item will be an entity, i.e, { Create { Note } } // Item will be an entity, i.e, { Create { Note } }
const response = await sendSignedRequest(actorInbox, <AP.Activity> item); const response = await sendSignedRequest(actorInbox, <AP.Activity> item);
console.log(`Send result: ${actorInbox}`, response.status, response.statusText, await response.text());
sendingIds.add(item.id) sendingIds.add(item.id)
console.log(`Send result: ${actorInbox}`, response.status, response.statusText, await response.text());
} }
} }
} catch (ex) { } catch (ex) {
@ -104,6 +103,7 @@ export default async function (req: VercelRequest, res: VercelResponse) {
} }
} }
console.log("loop exited")
console.log(`adding sentIds to sendingIds: ${sendingIds}`, ...sentIds); console.log(`adding sentIds to sendingIds: ${sendingIds}`, ...sentIds);
sendingIds.add(...sentIds); sendingIds.add(...sentIds);
console.log(`added sentIds: ${sendingIds}`) console.log(`added sentIds: ${sendingIds}`)