You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System information for bug reporting and debugging
System : Windows 11 Version 23H2
CPU : x86_64
Kernel : winnt-10.0.22631
ABI : x86_64-little_endian-llp64
WSRX : 0.2.31.g195a598
Machine : LAPTOP-5HC8OVNN-cb79d211-728d-4bbb-b01d-c7f676d5c40d
Problem
I found that the time in the log information output by wsrx is UTC time. Can we change UTC to the time corresponding to the host time zone (such as East Zone 8)?
Suggestions
Refer to this article: Rust入门秘籍 - tracing简要说明, the code may be modified in this way: desktop/pool.cc:
@@ -202,7 +202,7 @@ void LinkList::refreshStatus() {
auto latency = timer.elapsed();
if (reply->error() != QNetworkReply::NoError) {
if (m_logs) {
- m_logs->appendLog(Log(QDateTime::currentDateTimeUtc().toString(Qt::ISODate), EventLevel::ERROR,+ m_logs->appendLog(Log(QDateTime::currentDateTime().toString(Qt::ISODate), EventLevel::ERROR,
reply->errorString(), u"wsrx::desktop::pool"_s));
}
setData(index(i), LinkStatus::DEAD, StatusRole);
At the same time, there are many Utc::now() in the heartbeat module(in file wsrx/src/cli/daemon.rs), but due to insufficient experimentation, I am not sure if they should be modified.
I am a beginner in C++ and Rust, please forgive me if there are any unreasonable aspects :)
The text was updated successfully, but these errors were encountered:
System information for bug reporting and debugging
Problem
I found that the time in the log information output by wsrx is UTC time. Can we change UTC to the time corresponding to the host time zone (such as East Zone 8)?
Suggestions
Refer to this article: Rust入门秘籍 - tracing简要说明, the code may be modified in this way:
desktop/pool.cc
:wsrx/src/cli/logger.rs
:At the same time, there are many
Utc::now()
in the heartbeat module(in filewsrx/src/cli/daemon.rs
), but due to insufficient experimentation, I am not sure if they should be modified.I am a beginner in C++ and Rust, please forgive me if there are any unreasonable aspects :)
The text was updated successfully, but these errors were encountered: