From fd0cb228eec565b349365e7a6d3450df67f91e35 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Sat, 28 Jul 2018 15:34:44 +0100 Subject: [PATCH] #6374 Remove file logging for service; sharing a log file is probably not a brilliant idea --- src/lib/synergy/DaemonApp.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/lib/synergy/DaemonApp.cpp b/src/lib/synergy/DaemonApp.cpp index aa3491ad..58b8c499 100644 --- a/src/lib/synergy/DaemonApp.cpp +++ b/src/lib/synergy/DaemonApp.cpp @@ -337,23 +337,6 @@ DaemonApp::handleIpcMessage(const Event& e, void*) 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 { LOG((CLOG_DEBUG "empty command, elevate=%d", cm->elevate()));