From 4b37e0c5779c595bfc98b6d5b13cf12a2245376e Mon Sep 17 00:00:00 2001 From: Jim Broadus Date: Wed, 29 Jan 2020 21:39:11 -0800 Subject: [PATCH] Use qLogCat for GLog handler. Provide the domain string from the GLog callback as the category. --- ext/libclementine-common/core/logging.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/libclementine-common/core/logging.cpp b/ext/libclementine-common/core/logging.cpp index 42105151e..2dc894bdb 100644 --- a/ext/libclementine-common/core/logging.cpp +++ b/ext/libclementine-common/core/logging.cpp @@ -54,18 +54,18 @@ void GLog(const char* domain, int level, const char* message, void* user_data) { case G_LOG_FLAG_FATAL: case G_LOG_LEVEL_ERROR: case G_LOG_LEVEL_CRITICAL: - qLog(Error) << message; + qLogCat(Error, domain) << message; break; case G_LOG_LEVEL_WARNING: - qLog(Warning) << message; + qLogCat(Warning, domain) << message; break; case G_LOG_LEVEL_MESSAGE: case G_LOG_LEVEL_INFO: - qLog(Info) << message; + qLogCat(Info, domain) << message; break; case G_LOG_LEVEL_DEBUG: default: - qLog(Debug) << message; + qLogCat(Debug, domain) << message; break; } }