Convert server process error to string before writing to stream

This commit is contained in:
Björn Dahlgren 2022-01-23 20:47:57 +01:00
parent c5d69ac61b
commit b86f7cb9e0

View File

@ -164,8 +164,8 @@ Logs.prototype.logServerProcess = function (serverProcess, prefix, suffix) {
}) })
serverProcess.on('error', function (err) { serverProcess.on('error', function (err) {
if (logStream) { if (logStream && err) {
logStream.write(err) logStream.write(err.toString())
} }
}) })
} }