You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
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:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user