Access log compile fixes

This commit is contained in:
Thulinma 2017-04-18 18:53:57 +02:00
parent 66ecd88130
commit efc80123f0

View file

@ -519,7 +519,7 @@ void Controller::statSession::ping(const Controller::sessIndex & index, unsigned
static std::string accLogFileName; static std::string accLogFileName;
if (accLogFileName != Controller::accesslog || !accLogFile.good()){ if (accLogFileName != Controller::accesslog || !accLogFile.good()){
accLogFile.close(); accLogFile.close();
accLogFile.open(Controller::accesslog, std::ios_base::app); accLogFile.open(Controller::accesslog.c_str(), std::ios_base::app);
if (!accLogFile.good()){ if (!accLogFile.good()){
FAIL_MSG("Could not open access log file '%s': %s", Controller::accesslog.c_str(), strerror(errno)); FAIL_MSG("Could not open access log file '%s': %s", Controller::accesslog.c_str(), strerror(errno));
}else{ }else{