mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:15:10 +00:00
UI: Managers: Improve logging categories
This commit is contained in:
parent
f6d566321a
commit
991ff38c10
@ -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);
|
||||
|
@ -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) { }
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user