Added external measure command
This commit is contained in:
+5
-5
@@ -49,7 +49,7 @@ void LogFile::InitLogging(string logpath, int method, string prefix, bool reopen
|
||||
file = OpenFileWithRetries(filename.str(), "at");
|
||||
if (file == NULL)
|
||||
{
|
||||
throw (string)("Unable to open file for logging");
|
||||
throw (string)("Unable to open file \"" + filename.str() + "\"for logging");
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -64,8 +64,8 @@ void LogFile::InitLogging(string logpath, int method, string prefix, bool reopen
|
||||
file = OpenFileWithRetries(filename.str(), "at");
|
||||
lastname = filename.str();
|
||||
if (file == NULL)
|
||||
{
|
||||
throw (string)("Unable to open file for logging");
|
||||
{
|
||||
throw (string)("Unable to open file \"" + filename.str() + "\"for logging");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -105,8 +105,8 @@ void LogFile::LogString(string s, string pfx)
|
||||
filename << logpath << "/" << fileprefix << ".log";
|
||||
file = OpenFileWithRetries(filename.str(), "at");
|
||||
if (file == NULL)
|
||||
{
|
||||
throw (string)("Unable to open file for logging");
|
||||
{
|
||||
throw (string)("Unable to open file \"" + filename.str() + "\"for logging");
|
||||
pthread_mutex_unlock(&filemutex);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user