We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de6c0ae commit 2eef89cCopy full SHA for 2eef89c
src/logging.cpp
@@ -395,7 +395,7 @@ std::string BCLog::Logger::LogTimestampStr(const std::string& str)
395
if (m_started_new_line) {
396
int64_t nTimeMicros = GetTimeMicros();
397
strStamped = FormatISO8601DateTime(nTimeMicros/1000000);
398
- if (m_log_time_micros) {
+ if (m_log_time_micros && !strStamped.empty()) {
399
strStamped.pop_back();
400
strStamped += strprintf(".%06dZ", nTimeMicros%1000000);
401
}
0 commit comments