diff --git a/package-lock.json b/package-lock.json index 9549705..3e3c3ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "groundcontrol", - "version": "2.3.0", + "version": "2.3.1", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index fdc797e..a83d4ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "groundcontrol", - "version": "2.3.0", + "version": "2.3.1", "description": "GroundControl push server API", "devDependencies": { "@types/node": "18.7.16", diff --git a/src/worker-blockprocessor.ts b/src/worker-blockprocessor.ts index 2f13f0b..cd20244 100644 --- a/src/worker-blockprocessor.ts +++ b/src/worker-blockprocessor.ts @@ -60,7 +60,7 @@ async function processBlock(blockNum, sendQueueRepository: Repository } } - console.warn(addresses.length, "addresses paid in block"); + console.log(addresses.length, "addresses paid in block"); // allPotentialPushPayloadsArray.push({ address: "bc1qaemfnglf928kd9ma2jzdypk333au6ctu7h7led", txid: "666", sat: 1488, type: 2, token: "", os: "ios" }); // debug fixme // addresses.push("bc1qaemfnglf928kd9ma2jzdypk333au6ctu7h7led"); // debug fixme diff --git a/src/worker-processmempool.ts b/src/worker-processmempool.ts index 3f8b095..b6db949 100644 --- a/src/worker-processmempool.ts +++ b/src/worker-processmempool.ts @@ -125,7 +125,7 @@ dataSource try { await processMempool(); } catch (error) { - console.log(error); + console.warn('Exception in processMempool():', error); } const end = +new Date(); process.env.VERBOSE && console.log("processing mempool took", (end - start) / 1000, "sec"); diff --git a/src/worker-sender.ts b/src/worker-sender.ts index e1f9dcb..7a7a512 100644 --- a/src/worker-sender.ts +++ b/src/worker-sender.ts @@ -91,31 +91,31 @@ dataSource switch (payload.type) { case 2: payload = payload; - process.env.VERBOSE && console.warn("pushing to token", payload.token, payload.os); + process.env.VERBOSE && console.log("pushing to token", payload.token, payload.os); await GroundControlToMajorTom.pushOnchainAddressWasPaid(connection, GroundControlToMajorTom.getGoogleServerKey(), GroundControlToMajorTom.getApnsJwtToken(), payload); await sendQueueRepository.remove(record); break; case 3: payload = payload; - process.env.VERBOSE && console.warn("pushing to token", payload.token, payload.os); + process.env.VERBOSE && console.log("pushing to token", payload.token, payload.os); await GroundControlToMajorTom.pushOnchainAddressGotUnconfirmedTransaction(connection, GroundControlToMajorTom.getGoogleServerKey(), GroundControlToMajorTom.getApnsJwtToken(), payload); await sendQueueRepository.remove(record); break; case 1: payload = payload; - process.env.VERBOSE && console.warn("pushing to token", payload.token, payload.os); + process.env.VERBOSE && console.log("pushing to token", payload.token, payload.os); await GroundControlToMajorTom.pushLightningInvoicePaid(connection, GroundControlToMajorTom.getGoogleServerKey(), GroundControlToMajorTom.getApnsJwtToken(), payload); await sendQueueRepository.remove(record); break; case 4: payload = payload; - process.env.VERBOSE && console.warn("pushing to token", payload.token, payload.os); + process.env.VERBOSE && console.log("pushing to token", payload.token, payload.os); await GroundControlToMajorTom.pushOnchainTxidGotConfirmed(connection, GroundControlToMajorTom.getGoogleServerKey(), GroundControlToMajorTom.getApnsJwtToken(), payload); await sendQueueRepository.remove(record); break; case 5: payload = payload; - process.env.VERBOSE && console.warn("pushing to token", payload.token, payload.os); + process.env.VERBOSE && console.log("pushing to token", payload.token, payload.os); await GroundControlToMajorTom.pushMessage(connection, GroundControlToMajorTom.getGoogleServerKey(), GroundControlToMajorTom.getApnsJwtToken(), payload); await sendQueueRepository.remove(record); break;