Commit f9822bd8 authored by Legodev's avatar Legodev

TEMPORARY REMOVED: pretty printing for the time, because i could not get mingw > 4.9 to compile...

parent e1a1913c
......@@ -34,7 +34,7 @@ extern "C"
{
#ifdef DEBUG
std::time_t result = std::time(nullptr);
testfile << std::put_time(std::localtime(&result), "%F %T") << "\t\t ARMAIO-REQUEST " << function << std::endl;
testfile << std::localtime(&result) << "\t\t ARMAIO-REQUEST " << function << std::endl;
testfile.flush();
#endif
std::string errstr = "[\"" + std::string(PROTOCOL_MESSAGE_TYPE_ERROR) + "\", \"";
......@@ -44,7 +44,7 @@ extern "C"
output[outputSize - 1] = '\0';
#ifdef DEBUG
result = std::time(nullptr);
testfile << std::put_time(std::localtime(&result), "%F %T") << "\t\t ARMAIO-ERROR " << errstr << std::endl;
testfile << std::localtime(&result) << "\t\t ARMAIO-ERROR " << errstr << std::endl;
testfile.flush();
#endif
}
......@@ -60,18 +60,18 @@ extern "C"
try {
#ifdef DEBUG
result = std::time(nullptr);
testfile << std::put_time(std::localtime(&result), "%F %T") << "\t\t ARMAIO-REQUEST " << function << std::endl;
testfile << std::localtime(&result) << "\t\t ARMAIO-REQUEST " << function << std::endl;
testfile.flush();
for (int i = 0; i < argsCnt; i++) {
result = std::time(nullptr);
testfile << std::put_time(std::localtime(&result), "%F %T") << "\t\t ARMAIO-Argument " << i << ": " << args[i] << std::endl;
testfile << std::localtime(&result) << "\t\t ARMAIO-Argument " << i << ": " << args[i] << std::endl;
testfile.flush();
}
#endif
std::string returnString = extension->processCallExtension(function, args, argsCnt, outputSize);
#ifdef DEBUG
result = std::time(nullptr);
testfile << std::put_time(std::localtime(&result), "%F %T") << "\t\t ARMAIO-RETURN " << returnString << std::endl;
testfile << std::localtime(&result) << "\t\t ARMAIO-RETURN " << returnString << std::endl;
testfile.flush();
#endif
strncpy(output, returnString.c_str(), outputSize);
......@@ -91,7 +91,7 @@ extern "C"
output[outputSize - 1] = '\0';
#ifdef DEBUG
result = std::time(nullptr);
testfile << std::put_time(std::localtime(&result), "%F %T") << "\t\t ARMAIO-ERROR " << errstr << std::endl;
testfile << std::localtime(&result) << "\t\t ARMAIO-ERROR " << errstr << std::endl;
testfile.flush();
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment