diff --git a/lib/logs.js b/lib/logs.js index 3e30109..cc9b2f5 100644 --- a/lib/logs.js +++ b/lib/logs.js @@ -164,8 +164,8 @@ Logs.prototype.logServerProcess = function (serverProcess, prefix, suffix) { }) serverProcess.on('error', function (err) { - if (logStream) { - logStream.write(err) + if (logStream && err) { + logStream.write(err.toString()) } }) }