@vtex/api 6.45.14 → 6.45.15

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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [6.45.15] - 2023-02-01
11
+ ### Changed
12
+ - Removed unnecessary worker signal logs
13
+
10
14
  ## [6.45.14] - 2023-02-01
11
15
 
12
16
  ### Added
@@ -1753,6 +1757,7 @@ instead
1753
1757
  - `HttpClient` now adds `'Accept-Encoding': 'gzip'` header by default.
1754
1758
 
1755
1759
 
1756
- [Unreleased]: https://github.com/vtex/node-vtex-api/compare/v6.45.14...HEAD
1760
+ [Unreleased]: https://github.com/vtex/node-vtex-api/compare/v6.45.15...HEAD
1761
+ [6.45.15]: https://github.com/vtex/node-vtex-api/compare/v6.45.14...v6.45.15
1757
1762
  [6.45.14]: https://github.com/vtex/node-vtex-api/compare/v6.45.13...v6.45.14
1758
- [6.45.13]: https://github.com/vtex/node-vtex-api/compare/v6.45.12...v6.45.13
1763
+ [6.45.13]: https://github.com/vtex/node-vtex-api/compare/v6.45.12...v6.45.13
@@ -52,10 +52,6 @@ const onOnline = (worker) => {
52
52
  const GRACEFULLY_SHUTDOWN_TIMEOUT_S = 30;
53
53
  const SIGINT_TIMEOUT_S = 1;
54
54
  const handleSignal = (timeout) => (signal) => {
55
- // Log the Master Process received a signal
56
- const message = `Master process ${process.pid} received signal ${signal}`;
57
- console.warn(message);
58
- listeners_1.logger.warn({ message, signal });
59
55
  // For each worker, let's try to kill it gracefully
60
56
  Object.values(cluster_1.default.workers).forEach((worker) => worker === null || worker === void 0 ? void 0 : worker.kill(signal));
61
57
  // Let's raise the flag to kill the master process after all workers have died
@@ -5,11 +5,7 @@ const RequestCancelledError_1 = require("../../errors/RequestCancelledError");
5
5
  const logger_1 = require("../logger");
6
6
  exports.logger = new logger_1.Logger({ account: 'unhandled', workspace: 'unhandled', requestId: 'unhandled', operationId: 'unhandled', production: process.env.VTEX_PRODUCTION === 'true' });
7
7
  let watched;
8
- // Remove the any typings once we move to nodejs 10.x
9
8
  const handleSignal = signal => {
10
- const message = `Worker ${process.pid} received signal ${signal}`;
11
- console.warn(message);
12
- exports.logger.warn({ message, signal });
13
9
  process.exit(os_1.constants.signals[signal]);
14
10
  };
15
11
  exports.addProcessListeners = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtex/api",
3
- "version": "6.45.14",
3
+ "version": "6.45.15",
4
4
  "description": "VTEX I/O API client",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",