From 2e325009689b47363ffa5307679c8be1c88f209a Mon Sep 17 00:00:00 2001 From: Fabian Date: Tue, 12 Dec 2017 11:30:08 +0100 Subject: [PATCH 1/2] adding messages in build process --- tasks/release.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/release.js b/tasks/release.js index 0c0ea4d613..fa76dee103 100644 --- a/tasks/release.js +++ b/tasks/release.js @@ -11,10 +11,12 @@ let skipPack = false let binaryPath = null process.argv.forEach(function (val) { if (val === '--skip-pack') { + console.log('Skipping packaging') skipPack = true } if (val.startsWith('--binary')) { binaryPath = val.replace('--binary=', '') + console.log('Using build binary', binaryPath) } }) From 20b410bdf6163f31c42f9cfadb087d25a3c0e7e4 Mon Sep 17 00:00:00 2001 From: Fabian Date: Tue, 12 Dec 2017 11:46:19 +0100 Subject: [PATCH 2/2] fixes the timeout in cost of removing request logging --- app/src/main/mockServer.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/mockServer.js b/app/src/main/mockServer.js index 0a3bbff118..c682cee005 100644 --- a/app/src/main/mockServer.js +++ b/app/src/main/mockServer.js @@ -78,11 +78,12 @@ let randomCandidate = () => ({ module.exports = function (port = 8999) { let app = express() + // TODO this lets the server timeout until there is an external request // log all requests - app.use((req, res, next) => { - console.log('REST request:', req.method, req.originalUrl, req.body) - next() - }) + // app.use((req, res, next) => { + // console.log('REST request:', req.method, req.originalUrl, req.body) + // next() + // }) // delegation mock API let candidates = new Array(50).fill(0).map(randomPubkey)