From 52769ead52596089e01517edbcbe0d5f82a65a7d Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Wed, 15 Feb 2023 11:57:36 -0300 Subject: [PATCH] Revert "wip: added logs in run-app.js" This reverts commit 97be0646f06e721b4c7a7232aa5df760a1556668. --- tools/runners/run-app.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tools/runners/run-app.js b/tools/runners/run-app.js index 63425a1cc1..e509f9022c 100644 --- a/tools/runners/run-app.js +++ b/tools/runners/run-app.js @@ -404,7 +404,7 @@ Object.assign(AppRunner.prototype, { self.startPromise = self._makePromise("start"); self.isRunning = true; - await self._runApp(); + self._runApp(); await self.startPromise; self.startPromise = null; @@ -521,8 +521,8 @@ Object.assign(AppRunner.prototype, { // shown from the previous solution. preservePackageMap: true }); - var messages = await buildmessage.capture(async function () { - return await self.projectContext.readProjectMetadata(); + var messages = await buildmessage.capture(function () { + return self.projectContext.readProjectMetadata(); }); if (messages.hasMessages()) { return { @@ -548,7 +548,7 @@ Object.assign(AppRunner.prototype, { } messages = await buildmessage.capture(async function () { - return await self.projectContext.prepareProjectForBuild(); + await self.projectContext.prepareProjectForBuild(); }); if (messages.hasMessages()) { return { @@ -573,7 +573,7 @@ Object.assign(AppRunner.prototype, { }); } - var bundleResult = await Profile.run((firstRun?"B":"Reb")+"uild App", async function() { + var bundleResult = await Profile.run((firstRun?"B":"Reb")+"uild App", async () => { return await bundler.bundle({ projectContext: self.projectContext, outputPath: bundlePath, @@ -941,7 +941,6 @@ Object.assign(AppRunner.prototype, { var self = this; var firstRun = true; - console.log('before while'); while (true) { var runResult = await self._runOnce({ onListen: function () { @@ -1033,12 +1032,10 @@ Object.assign(AppRunner.prototype, { break; } - console.log('before close'); // Allow the process to exit normally, since optimistic file watchers // may be keeping the event loop busy. closeAllWatchers(); - console.log('before clean'); // Giving up for good. self._cleanUpPromises();