#6374 Remove file logging for service; sharing a log file is probably not a brilliant idea

This commit is contained in:
Nick Bolton 2018-07-28 15:34:44 +01:00
parent 5f3dce8379
commit fd0cb228ee
1 changed files with 0 additions and 17 deletions

View File

@ -337,23 +337,6 @@ DaemonApp::handleIpcMessage(const Event& e, void*)
LOG((CLOG_ERR "failed to save LogLevel setting, %s", e.what())); LOG((CLOG_ERR "failed to save LogLevel setting, %s", e.what()));
} }
} }
#if SYSAPI_WIN32
String logFilename;
if (argBase->m_logFile != NULL) {
logFilename = String(argBase->m_logFile);
ARCH->setting("LogFilename", logFilename);
m_watchdog->setFileLogOutputter(m_fileLogOutputter);
command = ArgParser::assembleCommand(argsArray, "--log", 1);
LOG((CLOG_DEBUG "removed log file argument and filename %s from command ", logFilename.c_str()));
LOG((CLOG_DEBUG "new command, elevate=%d command=%s", cm->elevate(), command.c_str()));
}
else {
m_watchdog->setFileLogOutputter(NULL);
}
m_fileLogOutputter->setLogFilename(logFilename.c_str());
#endif
} }
else { else {
LOG((CLOG_DEBUG "empty command, elevate=%d", cm->elevate())); LOG((CLOG_DEBUG "empty command, elevate=%d", cm->elevate()));