fix(core): mute mode printing in console in prod mode

Closes #6873
This commit is contained in:
Sam Julien 2016-02-03 11:47:53 -08:00 committed by Igor Minar
parent a15ca23469
commit 74be3d3fde
1 changed files with 4 additions and 5 deletions

View File

@ -456,11 +456,10 @@ export class ApplicationRef_ extends ApplicationRef {
});
return completer.promise.then(_ => {
let c = this._injector.get(Console);
let modeDescription =
assertionsEnabled() ?
"in the development mode. Call enableProdMode() to enable the production mode." :
"in the production mode. Call enableDevMode() to enable the development mode.";
c.log(`Angular 2 is running ${modeDescription}`);
if (assertionsEnabled()) {
c.log(
"Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.");
}
return _;
});
}