From 74be3d3fdeb7a49713e6388469a678482b689532 Mon Sep 17 00:00:00 2001 From: Sam Julien Date: Wed, 3 Feb 2016 11:47:53 -0800 Subject: [PATCH] fix(core): mute mode printing in console in prod mode Closes #6873 --- modules/angular2/src/core/application_ref.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/angular2/src/core/application_ref.ts b/modules/angular2/src/core/application_ref.ts index 345c862a18..a37815eac6 100644 --- a/modules/angular2/src/core/application_ref.ts +++ b/modules/angular2/src/core/application_ref.ts @@ -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 _; }); }