commit
c9f2eb8b95
2 changed files with 3 additions and 6 deletions
|
@ -105,8 +105,7 @@ TFilePath getLocalRoot() {
|
||||||
TFilePath lroot;
|
TFilePath lroot;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
std:
|
std::string regpath = "SOFTWARE\\" + tver.getAppName() + "\\" + tver.getAppName() +
|
||||||
string regpath = "SOFTWARE\\" + tver.getAppName() + "\\" + tver.getAppName() +
|
|
||||||
"\\" + tver.getAppVersionString() + "\\FARMROOT";
|
"\\" + tver.getAppVersionString() + "\\FARMROOT";
|
||||||
TFilePath name(regpath);
|
TFilePath name(regpath);
|
||||||
lroot = TFilePath(TSystem::getSystemValue(name).toStdString()) +
|
lroot = TFilePath(TSystem::getSystemValue(name).toStdString()) +
|
||||||
|
@ -2251,8 +2250,7 @@ void ControllerService::onStart(int argc, char *argv[]) {
|
||||||
TFilePath logFilePath = lRootDir + "controller.log";
|
TFilePath logFilePath = lRootDir + "controller.log";
|
||||||
m_userLog = new TUserLog(logFilePath);
|
m_userLog = new TUserLog(logFilePath);
|
||||||
}
|
}
|
||||||
std:
|
std::string appverinfo = tver.getAppVersionInfo("Farm Controller") + "\n\n";
|
||||||
string appverinfo = tver.getAppVersionInfo("Farm Controller") + "\n\n";
|
|
||||||
m_userLog->info(appverinfo.c_str());
|
m_userLog->info(appverinfo.c_str());
|
||||||
|
|
||||||
TFilePath globalRoot = getGlobalRoot();
|
TFilePath globalRoot = getGlobalRoot();
|
||||||
|
|
|
@ -876,8 +876,7 @@ void FarmServerService::onStart(int argc, char *argv[]) {
|
||||||
m_userLog = new TUserLog(logFilePath);
|
m_userLog = new TUserLog(logFilePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
std:
|
std::string appverinfo = tver.getAppVersionInfo("Farm Server") + "\n\n";
|
||||||
string appverinfo = tver.getAppVersionInfo("Farm Server") + "\n\n";
|
|
||||||
m_userLog->info(appverinfo.c_str());
|
m_userLog->info(appverinfo.c_str());
|
||||||
|
|
||||||
// legge dal file di configurazione dei server il numero di porta da
|
// legge dal file di configurazione dei server il numero di porta da
|
||||||
|
|
Loading…
Reference in a new issue