Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 9d2e18e

Browse files
alan-agius4Keen Yee Liau
authored and
Keen Yee Liau
committed
refactor: use console.log instead of util.puts
utils.puts is no longer available in Node.JS 12
1 parent c281157 commit 9d2e18e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

testapp/scripts/web-server.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
var express = require('express');
44
var bodyParser = require('body-parser')
55
var yargs = require('yargs');
6-
var util = require('util');
76
var path = require('path');
87
var env = require('../../spec/environment.js');
98

@@ -27,7 +26,7 @@ var main = function() {
2726
testApp.use(bodyParser.json());
2827
testApp.use(testMiddleware);
2928
testApp.listen(port);
30-
util.puts(["Starting express web server in", testAppDir ,"on port", port].
29+
console.log(["Starting express web server in", testAppDir ,"on port", port].
3130
join(" "));
3231
};
3332

0 commit comments

Comments
 (0)