UI: Managers: Improve logging categories

This commit is contained in:
Nodir Temirkhodjaev 2024-01-11 16:27:20 +03:00
parent f6d566321a
commit 991ff38c10
3 changed files with 4 additions and 4 deletions

View File

@ -12,11 +12,11 @@
namespace {
const QLoggingCategory LC("dbErrorManager");
const QLoggingCategory LC("manager.dbError");
void sqliteLogHandler(void *context, int errCode, const char *message)
{
qCWarning(LC) << "DB Error:" << errCode << qUtf8Printable(message);
qCWarning(LC) << "Code:" << errCode << "Message:" << qUtf8Printable(message);
if (SqliteDb::isIoError(errCode)) {
auto manager = static_cast<DbErrorManager *>(context);

View File

@ -9,7 +9,7 @@
#include <util/ioc/ioccontainer.h>
namespace {
const QLoggingCategory LC("driveListManager");
const QLoggingCategory LC("manager.driveList");
}
DriveListManager::DriveListManager(QObject *parent) : QObject(parent) { }

View File

@ -12,7 +12,7 @@
namespace {
const QLoggingCategory LC("serviceInfo");
const QLoggingCategory LC("manager.serviceInfo");
const char *const servicesSubKey = R"(SYSTEM\CurrentControlSet\Services)";
const char *const serviceImagePathKey = "ImagePath";