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

Commit

Permalink
refactor: use console.log instead of util.puts
Browse files Browse the repository at this point in the history
utils.puts is no longer available in Node.JS 12
  • Loading branch information
alan-agius4 authored and Keen Yee Liau committed May 8, 2020
1 parent c281157 commit 9d2e18e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testapp/scripts/web-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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(" "));
};

Expand Down

0 comments on commit 9d2e18e

Please sign in to comment.