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:
parent
bdd3635f4b
commit
b7f0311eb2
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue