Skip to content

Commit

Permalink
add logging for incoming conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNi245 committed Jul 30, 2024
1 parent e185d9d commit e2be0fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/delivery-service/src/delivery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export default (
//@ts-ignore
async (req: express.Request, res, next) => {
try {
console.debug('get incoming messages for ', req.params.ensName);
//TODO use address
const incomingMessages = await db.getIncomingMessages(
req.params.ensName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export function createMessage(redis: Redis) {
const encryptedDeliverInformation = envelop.metadata
.deliveryInformation as DeliveryInformation;

console.debug(
'store incoming conversation for',
encryptedDeliverInformation.to,
);

await redis.zAdd(
RedisPrefix.IncomingConversations + encryptedDeliverInformation.to,
{
Expand Down

0 comments on commit e2be0fa

Please sign in to comment.