mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 17:59:03 +00:00
Changed: #991 Make sure all debug files are created in log directory
This commit is contained in:
parent
318983bc11
commit
e36a778e7c
5 changed files with 7 additions and 8 deletions
|
@ -194,7 +194,7 @@ void statRyzomBug(const char *dirSrc)
|
|||
CPath::getPathContent(dirSrc, false, false, true, fileList, NULL, true);
|
||||
|
||||
// delete the log.log
|
||||
CFile::deleteFile("log.log");
|
||||
CFile::deleteFile(getLogDirectory() + "log.log");
|
||||
|
||||
TStatStrMap senderMap;
|
||||
TStatMap shardMap;
|
||||
|
|
|
@ -661,7 +661,7 @@ int main(int argc, const char *argv[])
|
|||
|
||||
// Open log
|
||||
FILE *logStream;
|
||||
logStream= fopen("C:/temp/file_info.log", "wt");
|
||||
logStream= fopen(std::string(getLogDirectory() + "file_info.log").c_str(), "wt");
|
||||
|
||||
|
||||
// parse dir or file ??
|
||||
|
|
|
@ -120,8 +120,6 @@ void init()
|
|||
}
|
||||
|
||||
//
|
||||
CFileDisplayer fd("evallog.log", true);
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
// Filter addSearchPath
|
||||
|
@ -129,6 +127,7 @@ int main(int argc, char **argv)
|
|||
InfoLog->addNegativeFilter("adding the path");
|
||||
|
||||
createDebug();
|
||||
CFileDisplayer fd(getLogDirectory() + "evallog.log", true);
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
@ -299,14 +299,14 @@ void moulineZones(vector<string> &zoneNames)
|
|||
/****************************************************************\
|
||||
MAIN
|
||||
\****************************************************************/
|
||||
CFileDisplayer fd("evallog.log", true);
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
// Filter addSearchPath
|
||||
NLMISC::createDebug();
|
||||
InfoLog->addNegativeFilter ("adding the path");
|
||||
|
||||
CFileDisplayer fd(getLogDirectory() + "evallog.log", true);
|
||||
|
||||
#ifdef LOG_ALL_INFO_TO_FILE
|
||||
createDebug();
|
||||
DebugLog->addDisplayer (&fd);
|
||||
|
|
|
@ -1233,8 +1233,8 @@ bool forageTestDoExtract(
|
|||
}
|
||||
|
||||
// Request and output results
|
||||
FILE *f = fopen( "forage_test.csv", "at" );
|
||||
FILE *f2 = fopen( "forage_test.log", "at" );
|
||||
FILE *f = fopen( std::string(getLogDirectory() + "forage_test.csv").c_str(), "at" );
|
||||
FILE *f2 = fopen( std::string(getLogDirectory() + "forage_test.log").c_str(), "at" );
|
||||
float reqS = 1.0f / (reqPeriod * 10.0f);
|
||||
float req [CHarvestSource::NbPosRTProps];
|
||||
float abs [CHarvestSource::NbPosRTProps];
|
||||
|
|
Loading…
Reference in a new issue