[BH-1688] Create a standard for logs

* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
This commit is contained in:
Lukasz Mastalerz
2023-10-10 08:47:37 +02:00
committed by Łukasz Mastalerz
parent a21736e3a6
commit d9a1194e6f
157 changed files with 506 additions and 463 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "ThreadRecord.hpp"
@@ -196,7 +196,7 @@ std::unique_ptr<db::QueryResult> ThreadRecordInterface::markAsReadQuery(const st
auto result = false;
if (record.isValid()) {
LOG_DEBUG("query-read %d", static_cast<int>(localQuery->read));
LOG_DEBUG("Query read: %d", static_cast<int>(localQuery->read));
record.unreadMsgCount = localQuery->read == db::query::MarkAsRead::Read::True ? 0 : 1;
result = Update(record);
}