Permalink
Browse files

Properly activating logging at bootstrap by development flag.

  • Loading branch information...
marcominetti committed Jun 4, 2016
1 parent 1e6e919 commit 53f09f59cfc26473c172bb2d18528d09c053b86e
Showing with 4 additions and 4 deletions.
  1. +1 −1 core/main/run.cluster.server.js
  2. +3 −3 core/main/run.core.server.js
@@ -89,7 +89,7 @@ global.main.commands['run.cluster'] = function(base) {
if (process.env.BUILD == null && fs.existsSync(bootstrap_dist_path) === true) {
require(bootstrap_dist_path);
} else {
- global.native.compile('/core/cluster/bootstrap.server.js', global.main.path.core, 'boot', true, true);
+ global.native.compile('/core/cluster/bootstrap.server.js', global.main.path.core, 'boot', true, !global.development);
}
bootstrap.post(true).catch(function(error) {
@@ -69,7 +69,7 @@ global.main.commands.run = function(base, callback) {
//process.exit();
});
});
-
+
// attaching on main process kill events to force exit
['SIGTERM', 'SIGINT'].forEach(function(e) {
process.on(e, function() {
@@ -89,9 +89,9 @@ global.main.commands.run = function(base, callback) {
if (process.env.BUILD == null && fs.existsSync(bootstrap_dist_path) === true) {
require(bootstrap_dist_path);
} else {
- global.native.compile('/core/bootstrap.server.js', global.main.path.core, 'boot', true, true);
+ global.native.compile('/core/bootstrap.server.js', global.main.path.core, 'boot', true, !global.development);
}
-
+
bootstrap.post(true).then(function() {
if (callback != null) {
callback();

0 comments on commit 53f09f5

Please sign in to comment.