mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-06 00:13:33 +00:00
Updated, so if pseudo service logging is not set, to disable console.log
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -2178,7 +2178,12 @@ function serviceManager()
|
||||
var childParms = "\
|
||||
var child = null; \
|
||||
var options = " + JSON.stringify(options) + ";\
|
||||
if(options.logOutput) { console.setDestination(console.Destinations.LOGFILE); console.log('Logging Outputs...'); }\
|
||||
if(options.logOutput)\
|
||||
{ console.setDestination(console.Destinations.LOGFILE); console.log('Logging Outputs...'); }\
|
||||
else\
|
||||
{\
|
||||
console.setDestination(console.Destinations.DISABLED);\
|
||||
}\
|
||||
function cleanupAndExit()\
|
||||
{\
|
||||
if(options.pidPath) { require('fs').unlinkSync(options.pidPath); }\
|
||||
|
||||
Reference in New Issue
Block a user