From b7f0311eb2fe5f03232668cba8bb7087f7bb7f59 Mon Sep 17 00:00:00 2001 From: crs Date: Sat, 6 Nov 2004 16:11:39 +0000 Subject: [PATCH] Fixed console appearing when running synergy as a service. This was introduced with the change to print system info to the start of the log. This message was printed before the service installed the log handler that directs messages to the event log. --- cmd/synergyc/synergyc.cpp | 6 +++--- cmd/synergys/synergys.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/synergyc/synergyc.cpp b/cmd/synergyc/synergyc.cpp index 88097a25..21cc95c3 100644 --- a/cmd/synergyc/synergyc.cpp +++ b/cmd/synergyc/synergyc.cpp @@ -482,9 +482,6 @@ run(int argc, char** argv, ILogOutputter* outputter, StartupFunc startup) // through the task bar. s_taskBarReceiver = createTaskBarReceiver(&logBuffer); - // identify system - LOG((CLOG_INFO "Synergy client on %s", ARCH->getOSName().c_str())); - // run int result = startup(argc, argv); @@ -602,6 +599,9 @@ parse(int argc, const char* const* argv) // set defaults ARG->m_name = ARCH->getHostName(); + // identify system + LOG((CLOG_INFO "Synergy client on %s", ARCH->getOSName().c_str())); + // parse options int i; for (i = 1; i < argc; ++i) { diff --git a/cmd/synergys/synergys.cpp b/cmd/synergys/synergys.cpp index b61fa463..7e9ac61f 100644 --- a/cmd/synergys/synergys.cpp +++ b/cmd/synergys/synergys.cpp @@ -573,9 +573,6 @@ run(int argc, char** argv, ILogOutputter* outputter, StartupFunc startup) // through the task bar. s_taskBarReceiver = createTaskBarReceiver(&logBuffer); - // identify system - LOG((CLOG_INFO "Synergy server on %s", ARCH->getOSName().c_str())); - // run int result = startup(argc, argv); @@ -734,6 +731,9 @@ parse(int argc, const char* const* argv) // set defaults ARG->m_name = ARCH->getHostName(); + // identify system + LOG((CLOG_INFO "Synergy server on %s", ARCH->getOSName().c_str())); + // parse options int i = 1; for (; i < argc; ++i) {