Skip to content

Commit 619c56a

Browse files
committed
log batch
1 parent f7f2c22 commit 619c56a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

spec/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ on_db(
8282
);
8383

8484
let logLevel;
85-
let silent = false;
85+
let silent = true;
8686
if (process.env.VERBOSE) {
8787
silent = false;
8888
logLevel = 'verbose';

src/ParseServerRESTController.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function ParseServerRESTController(applicationId, router) {
4747
}
4848

4949
if (path === '/batch') {
50+
console.log({ path });
5051
const batch = transactionRetries => {
5152
let initialPromise = Promise.resolve();
5253
if (data.transaction === true) {
@@ -87,13 +88,15 @@ function ParseServerRESTController(applicationId, router) {
8788
}
8889
})
8990
.catch(error => {
91+
console.log({ error });
9092
if (
9193
error &&
9294
error.find(
9395
errorItem => typeof errorItem.error === 'object' && errorItem.error.code === 251
9496
) &&
9597
transactionRetries > 0
9698
) {
99+
console.log(transactionRetries - 1);
97100
return batch(transactionRetries - 1);
98101
}
99102
throw error;

0 commit comments

Comments
 (0)