Merge pull request #84 from OpenShot/revert-82-ZmgLogger_hires_timestamp

Revert "Prepend current time (hires) to messages logged via ZmqLogger"
This commit is contained in:
Jonathan Thomas
2018-04-20 02:04:15 -05:00
committed by GitHub

View File

@@ -176,14 +176,6 @@ void ZmqLogger::AppendDebugMethod(string method_name, string arg1_name, float ar
stringstream message;
message << fixed << setprecision(4);
// Prepend current time (hires) to message
struct timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
char timebuf[80];
strftime(timebuf, sizeof timebuf, "%F %T", localtime(&ts.tv_sec));
message << timebuf << "." << std::setiosflags(std::ios::right) << std::setw(9) << std::setfill('0') << ts.tv_nsec << " ";
message << method_name << " (";
// Add attributes to method JSON
@@ -211,4 +203,4 @@ void ZmqLogger::AppendDebugMethod(string method_name, string arg1_name, float ar
// Send message through ZMQ
Log(message.str());
}
}
}