diff --git a/login_server/src/cpp/Gradido_LoginServer.cpp b/login_server/src/cpp/Gradido_LoginServer.cpp index 82d7e9b55..c3819f951 100644 --- a/login_server/src/cpp/Gradido_LoginServer.cpp +++ b/login_server/src/cpp/Gradido_LoginServer.cpp @@ -134,6 +134,9 @@ int Gradido_LoginServer::main(const std::vector& args) #if defined(_WIN32) || defined(_WIN64) log_Path = "./"; #endif + if (mConfigPath != "") { + log_Path = "./"; + } // init speed logger Poco::AutoPtr speedLogFileChannel(new Poco::SimpleFileChannel(log_Path + "speedLog.txt")); @@ -168,11 +171,11 @@ int Gradido_LoginServer::main(const std::vector& args) std::string cfg_Path = Poco::Path::config() + "grd_login/"; try { - if(mConfigPath != "") { - loadConfiguration(mConfigPath); - } else { - loadConfiguration(cfg_Path + "grd_login.properties"); - } + if(mConfigPath != "") { + loadConfiguration(mConfigPath); + } else { + loadConfiguration(cfg_Path + "grd_login.properties"); + } } catch (Poco::Exception& ex) { errorLog.error("error loading config: %s", ex.displayText());