@abyss-project/monitor 1.0.64 → 1.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,6 +68,7 @@ const setupGracefulShutdown = (config) => {
68
68
  }
69
69
  }
70
70
  if (httpServer) {
71
+ logger.log('Closing HTTP server to stop accepting new connections...');
71
72
  await new Promise((resolve, reject) => {
72
73
  httpServer.close((err) => {
73
74
  if (err) {
@@ -41,7 +41,7 @@ const waitForActiveRequests = async (timeout = 30000, checkInterval = 100, logge
41
41
  return new Promise((resolve, reject) => {
42
42
  const check = () => {
43
43
  checkCount++;
44
- console.log(activeRequests, killableRequests);
44
+ logger === null || logger === void 0 ? void 0 : logger.log(`${checkCount} - Checking active requests... ${activeRequests} ${killableRequests}`);
45
45
  if (activeRequests === 0) {
46
46
  logger === null || logger === void 0 ? void 0 : logger.log('All active requests completed');
47
47
  resolve();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/monitor",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "description": "Core package to interact with Abyss-Monitor",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",