move log folder into caller folder if called with additional config file

This commit is contained in:
einhornimmond 2021-05-13 15:45:09 +02:00
parent 201590db7d
commit 4580bb15a0

View File

@ -134,6 +134,9 @@ int Gradido_LoginServer::main(const std::vector<std::string>& args)
#if defined(_WIN32) || defined(_WIN64)
log_Path = "./";
#endif
if (mConfigPath != "") {
log_Path = "./";
}
// init speed logger
Poco::AutoPtr<Poco::SimpleFileChannel> speedLogFileChannel(new Poco::SimpleFileChannel(log_Path + "speedLog.txt"));