소스 검색

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

Manfred Kroehnert 11 년 전
부모
커밋
e9e3b25608
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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');
+	});
 };