Browse Source

amberc.js: fix compile time calculation + restore console.log

Manfred Kroehnert 10 years ago
parent
commit
e9e3b25608
1 changed files with 5 additions and 1 deletions
  1. 5 1
      cli/support/amberc.js

+ 5 - 1
cli/support/amberc.js

@@ -170,7 +170,11 @@ AmberC.prototype.main = function(configuration, finished_callback) {
 	}, function(error) {
 		console.error(error);
 	})
-	.then(compose_js_files);
+	.then(compose_js_files)
+	.then(function() {
+		console.log = console.ambercLog;
+		console.timeEnd('Compile Time');
+	});
 };