Merge branch 'master' into IPv6

This commit is contained in:
Jonathan Naylor 2020-10-05 13:06:06 +01:00
commit 8a6a9f2691
8 changed files with 108 additions and 56 deletions

View file

@ -170,7 +170,11 @@ int CYSFGateway::run()
}
#endif
ret = ::LogInitialise(m_conf.getLogFilePath(), m_conf.getLogFileRoot(), m_conf.getLogFileLevel(), m_conf.getLogDisplayLevel());
#if !defined(_WIN32) && !defined(_WIN64)
ret = ::LogInitialise(m_daemon, m_conf.getLogFilePath(), m_conf.getLogFileRoot(), m_conf.getLogFileLevel(), m_conf.getLogDisplayLevel());
#else
ret = ::LogInitialise(false, m_conf.getLogFilePath(), m_conf.getLogFileRoot(), m_conf.getLogFileLevel(), m_conf.getLogDisplayLevel());
#endif
if (!ret) {
::fprintf(stderr, "YSFGateway: unable to open the log file\n");
return 1;