egg 3.17.1 → 3.17.2

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/lib/egg.js CHANGED
@@ -3,7 +3,6 @@ const path = require('path');
3
3
  const fs = require('fs');
4
4
  const ms = require('ms');
5
5
  const http = require('http');
6
- const inspector = require('inspector');
7
6
  const EggCore = require('egg-core').EggCore;
8
7
  const cluster = require('cluster-client');
9
8
  const extend = require('extend2');
@@ -115,7 +114,7 @@ class EggApplication extends EggCore {
115
114
  isLeader: this.type === 'agent',
116
115
  logger: this.coreLogger,
117
116
  // debug mode does not check heartbeat
118
- isCheckHeartbeat: inspector.url() === undefined,
117
+ isCheckHeartbeat: this.config.env === 'prod' ? true : require('inspector').url() === undefined,
119
118
  });
120
119
  const client = cluster(clientClass, options);
121
120
  this._patchClusterClient(client);
package/lib/start.js CHANGED
@@ -3,9 +3,6 @@
3
3
  const path = require('path');
4
4
 
5
5
  module.exports = async (options = {}) => {
6
- if (!options.ignoreWarning) {
7
- console.warn('single process mode is still in experiment, please don\'t use it in production environment');
8
- }
9
6
 
10
7
  options.baseDir = options.baseDir || process.cwd();
11
8
  options.mode = 'single';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egg",
3
- "version": "3.17.1",
3
+ "version": "3.17.2",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },