Skip to content

Commit d26a737

Browse files
committed
fix: add back log
1 parent 5050af7 commit d26a737

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

db/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
data/*

infrastructure/web3-adapter/src/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import axios from "axios";
44
import { v4 as uuidv4 } from "uuid";
55
import { MappingDatabase } from "./db";
66
import { EVaultClient } from "./evault/evault";
7+
import { logger } from "./logging";
78
import { fromGlobal, toGlobal } from "./mapper/mapper";
89
import type { IMapping } from "./mapper/mapper.types";
910

@@ -306,6 +307,15 @@ export class Web3Adapter {
306307
if (!this.mapping[tableName]) return;
307308
console.log("We get here?");
308309
// If we already have a mapping, use that global ID
310+
311+
logger.info({
312+
message: "Handling change",
313+
dataId: data.id,
314+
tableName,
315+
existingGlobalId,
316+
participants,
317+
});
318+
309319
if (existingGlobalId) {
310320
if (this.lockedIds.includes(existingGlobalId)) return;
311321
const global = await toGlobal({

0 commit comments

Comments
 (0)