Skip to content

Commit

Permalink
Fixed last_msg empty. (Reversed logic by accident.)
Browse files Browse the repository at this point in the history
  • Loading branch information
StarbotArc committed Apr 16, 2024
1 parent 07a3099 commit c72645e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Misc/PlogLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ PlogLogger::PlogLogger() {

void PlogLogger::log(Core::ILogger::Severity logLevel, const std::string_view message) {
const std::lock_guard<std::mutex> lock(this->mutex);
if (this->last_msg.empty()) {
if (!this->last_msg.empty()) {
if (message == this->last_msg) {
this->count++;
} else {
Expand Down

0 comments on commit c72645e

Please sign in to comment.