From 10774c13bc709c879330e292404cfb02196caf16 Mon Sep 17 00:00:00 2001 From: Wentao Ma Date: Thu, 8 Sep 2016 13:29:00 +0800 Subject: [PATCH] Fix 'util.print: use console.log instead' When use hotnode in v4.15, will get 'util.print: use console.log instead' in output. Try to fix it with just change util.print to console.log --- javascript/hotloader.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/javascript/hotloader.js b/javascript/hotloader.js index 60420f4..23b76a0 100644 --- a/javascript/hotloader.js +++ b/javascript/hotloader.js @@ -1,5 +1,5 @@ // Generated by CoffeeScript 1.4.0 -var exec, fs, spawn, util, watch; +var exec, fs, spawn, watch; exec = require('child_process').exec; @@ -7,8 +7,6 @@ spawn = require('child_process').spawn; fs = require('fs'); -util = require('util'); - watch = require('watch'); exports.HotLoader = (function() { @@ -109,7 +107,7 @@ exports.HotLoader = (function() { env: process.env }); this.process.stdout.on("data", function(data) { - return util.print(data.toString()); + return consloe.log(data.toString()); }); this.process.stderr.on("data", function(data) { return _this.stderrOutput(data.toString());