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.
This commit is contained in:
crs 2004-11-06 16:11:39 +00:00
parent bdd3635f4b
commit b7f0311eb2
2 changed files with 6 additions and 6 deletions

View File

@ -482,9 +482,6 @@ run(int argc, char** argv, ILogOutputter* outputter, StartupFunc startup)
// through the task bar. // through the task bar.
s_taskBarReceiver = createTaskBarReceiver(&logBuffer); s_taskBarReceiver = createTaskBarReceiver(&logBuffer);
// identify system
LOG((CLOG_INFO "Synergy client on %s", ARCH->getOSName().c_str()));
// run // run
int result = startup(argc, argv); int result = startup(argc, argv);
@ -602,6 +599,9 @@ parse(int argc, const char* const* argv)
// set defaults // set defaults
ARG->m_name = ARCH->getHostName(); ARG->m_name = ARCH->getHostName();
// identify system
LOG((CLOG_INFO "Synergy client on %s", ARCH->getOSName().c_str()));
// parse options // parse options
int i; int i;
for (i = 1; i < argc; ++i) { for (i = 1; i < argc; ++i) {

View File

@ -573,9 +573,6 @@ run(int argc, char** argv, ILogOutputter* outputter, StartupFunc startup)
// through the task bar. // through the task bar.
s_taskBarReceiver = createTaskBarReceiver(&logBuffer); s_taskBarReceiver = createTaskBarReceiver(&logBuffer);
// identify system
LOG((CLOG_INFO "Synergy server on %s", ARCH->getOSName().c_str()));
// run // run
int result = startup(argc, argv); int result = startup(argc, argv);
@ -734,6 +731,9 @@ parse(int argc, const char* const* argv)
// set defaults // set defaults
ARG->m_name = ARCH->getHostName(); ARG->m_name = ARCH->getHostName();
// identify system
LOG((CLOG_INFO "Synergy server on %s", ARCH->getOSName().c_str()));
// parse options // parse options
int i = 1; int i = 1;
for (; i < argc; ++i) { for (; i < argc; ++i) {