diff options
| -rw-r--r-- | src/common/logging/backend.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index 555addb95..4462ff3fb 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp | |||
| @@ -115,8 +115,6 @@ private: | |||
| 115 | using std::chrono::duration_cast; | 115 | using std::chrono::duration_cast; |
| 116 | using std::chrono::steady_clock; | 116 | using std::chrono::steady_clock; |
| 117 | 117 | ||
| 118 | static steady_clock::time_point time_origin = steady_clock::now(); | ||
| 119 | |||
| 120 | Entry entry; | 118 | Entry entry; |
| 121 | entry.timestamp = | 119 | entry.timestamp = |
| 122 | duration_cast<std::chrono::microseconds>(steady_clock::now() - time_origin); | 120 | duration_cast<std::chrono::microseconds>(steady_clock::now() - time_origin); |
| @@ -135,6 +133,7 @@ private: | |||
| 135 | std::vector<std::unique_ptr<Backend>> backends; | 133 | std::vector<std::unique_ptr<Backend>> backends; |
| 136 | Common::MPSCQueue<Log::Entry> message_queue; | 134 | Common::MPSCQueue<Log::Entry> message_queue; |
| 137 | Filter filter; | 135 | Filter filter; |
| 136 | std::chrono::steady_clock::time_point time_origin{std::chrono::steady_clock::now()}; | ||
| 138 | }; | 137 | }; |
| 139 | 138 | ||
| 140 | void ConsoleBackend::Write(const Entry& entry) { | 139 | void ConsoleBackend::Write(const Entry& entry) { |