From 2a5918477276321fc5759d173ff1d53b77122d73 Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Fri, 20 Apr 2018 02:03:37 -0500 Subject: [PATCH] Revert "Prepend current time (hires) to messages logged via ZmqLogger" --- src/ZmqLogger.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/ZmqLogger.cpp b/src/ZmqLogger.cpp index 96bccbbf..27da2977 100644 --- a/src/ZmqLogger.cpp +++ b/src/ZmqLogger.cpp @@ -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()); } -} +} \ No newline at end of file