[dasher: 10/28] BasicLog uses same dir as CUserLog (CFileLogger::GetFullFilename = pwd on linux)



commit fa775987bdcbaea171deb29566f37d59260f5ab2
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date:   Wed Sep 14 14:11:29 2011 +0100

    BasicLog uses same dir as CUserLog (CFileLogger::GetFullFilename = pwd on linux)

 Src/DasherCore/BasicLog.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/Src/DasherCore/BasicLog.cpp b/Src/DasherCore/BasicLog.cpp
index 3b04771..de089b9 100644
--- a/Src/DasherCore/BasicLog.cpp
+++ b/Src/DasherCore/BasicLog.cpp
@@ -62,8 +62,7 @@ void CBasicLog::EndTrial() {
   if(!m_bStarted)
     return;
 
-  std::string strFileName(GetStringParameter(SP_USER_LOC));
-  strFileName.append("dasher_basic.log");
+  std::string strFileName(CFileLogger::GetFullFilenamePath("dasher_basic.log"));
 
   std::ofstream oFile;
   oFile.open(strFileName.c_str(), ios::out | ios::app);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]