Skip to content

Commit

Permalink
fix(web-server): since node 12 there is no util.puts
Browse files Browse the repository at this point in the history
  • Loading branch information
yadimon committed Mar 11, 2020
1 parent 23e4b30 commit 067fa2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testapp/scripts/web-server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

var express = require('express');
var bodyParser = require('body-parser')
var bodyParser = require('body-parser');
var optimist = require('optimist');
var util = require('util');
var path = require('path');
Expand All @@ -27,7 +27,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 067fa2c

Please sign in to comment.