mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
🐛 GetLogsV2 also needs a log_flag
This commit is contained in:
parent
94c2cb1f65
commit
f1b03ecb41
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ std::string Log::GetLogs(const std::string& name) noexcept
|
||||||
}
|
}
|
||||||
std::string Log::GetLogsV2() noexcept
|
std::string Log::GetLogsV2() noexcept
|
||||||
{
|
{
|
||||||
if (log_flag.GetChangeState() && data.size()) //if there are changes
|
if (log_flag_v2.GetChangeState() && data.size()) //if there are changes
|
||||||
{
|
{
|
||||||
log_snapshot_v2.resize(0);
|
log_snapshot_v2.resize(0);
|
||||||
//re-generate snapshot
|
//re-generate snapshot
|
||||||
|
|
@ -65,7 +65,7 @@ std::string Log::GetLogsV2() noexcept
|
||||||
log_snapshot_v2 += "},"; //2
|
log_snapshot_v2 += "},"; //2
|
||||||
}
|
}
|
||||||
log_snapshot_v2.back() = ']';
|
log_snapshot_v2.back() = ']';
|
||||||
log_flag.SetChangesOff();
|
log_flag_v2.SetChangesOff();
|
||||||
}
|
}
|
||||||
|
|
||||||
return log_snapshot_v2;
|
return log_snapshot_v2;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue