Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit c86a22a

Browse files
Remove debug logs
1 parent 10cff5f commit c86a22a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/common/helper.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,9 @@ async function getESClient () {
6464
const tId = _.get(params.query, 'transactionId')
6565
params.query = _.omit(params.query, 'transactionId')
6666
if (!tId || tId !== transactionId) {
67-
logger.info(`${transactionId} is trying to acquire the mutex`)
6867
const release = await esClientMutex.acquire()
69-
logger.info(`${transactionId} has acquired the mutex`)
7068
mutexReleaseMap[tId || 'noTransaction'] = release
7169
transactionId = tId
72-
} else {
73-
logger.info(`${transactionId} did not acquire any mutex`)
7470
}
7571
try {
7672
return await esClient.transport.originalRequest(params)
@@ -80,12 +76,8 @@ async function getESClient () {
8076
delete mutexReleaseMap[tId || 'noTransaction']
8177
transactionId = undefined
8278
if (release) {
83-
logger.info(`${transactionId} is now releasing the mutex`)
8479
release()
85-
logger.info(`${transactionId} has released the mutex`)
8680
}
87-
} else {
88-
logger.info(`${transactionId} did not release the mutex`)
8981
}
9082
}
9183
}
@@ -195,11 +187,7 @@ function checkEsMutexRelease (tId) {
195187
delete mutexReleaseMap[tId]
196188
transactionId = undefined
197189
if (release) {
198-
logger.info(`${tId} is releasing the mutex`)
199190
release()
200-
logger.info(`${tId} has released the mutex`)
201-
} else {
202-
logger.info(`${tId} has no mutex to release`)
203191
}
204192
}
205193
}

0 commit comments

Comments
 (0)