Skip to content

Commit

Permalink
better logs
Browse files Browse the repository at this point in the history
  • Loading branch information
boudra committed Apr 18, 2024
1 parent 1e5ec21 commit a1de209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ export class Database {
}

async acquireWriteLock() {
console.log("acquiring 2");
const client = await this.#connectionPool.connect();
console.log("acquiring 3");

// generate lock id based on schema
const lockId = this.databaseSchemaName.split("").reduce((acc, char) => {
return acc + char.charCodeAt(0);
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async function main(): Promise<void> {
}

async function indexChains(isFirstRun = false) {
console.log("acquiring");
baseLogger.info("attempting to acquire write lock");
const lock = await db.acquireWriteLock();

if (lock !== null) {
Expand Down

0 comments on commit a1de209

Please sign in to comment.