From 9d2e18e10d82a97bee58193968f22be6cd1f04e9 Mon Sep 17 00:00:00 2001 From: Alan Agius <alan.agius4@gmail.com> Date: Fri, 8 May 2020 11:07:00 +0200 Subject: [PATCH] refactor: use console.log instead of util.puts utils.puts is no longer available in Node.JS 12 --- testapp/scripts/web-server.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testapp/scripts/web-server.js b/testapp/scripts/web-server.js index dc42220e3..eef1a86c7 100755 --- a/testapp/scripts/web-server.js +++ b/testapp/scripts/web-server.js @@ -3,7 +3,6 @@ var express = require('express'); var bodyParser = require('body-parser') var yargs = require('yargs'); -var util = require('util'); var path = require('path'); var env = require('../../spec/environment.js'); @@ -27,7 +26,7 @@ var main = function() { testApp.use(bodyParser.json()); testApp.use(testMiddleware); testApp.listen(port); - util.puts(["Starting express web server in", testAppDir ,"on port", port]. + console.log(["Starting express web server in", testAppDir ,"on port", port]. join(" ")); };