aboutsummaryrefslogtreecommitdiff
path: root/launcher/CMakeLists.txt
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-12-28 09:54:23 -0800
committerGitHub <noreply@github.com>2022-12-28 09:54:23 -0800
commit67ac3da8a0eac959343fe86ca143b97f0f76543c (patch)
treefe340243603b2a5a743567e817aeab01ab44e8f5 /launcher/CMakeLists.txt
parentc1e5179b5fb1e69c61bdbd3c6258e871882dfec5 (diff)
parent7a651bdc5310dffd19148e5f2046126324e2f53f (diff)
downloadPrismLauncher-67ac3da8a0eac959343fe86ca143b97f0f76543c.tar.gz
PrismLauncher-67ac3da8a0eac959343fe86ca143b97f0f76543c.tar.bz2
PrismLauncher-67ac3da8a0eac959343fe86ca143b97f0f76543c.zip
Merge pull request #684 from Scrumplex/logging-categories
Prevents private credentials from leaking in the logs of general users
Diffstat (limited to 'launcher/CMakeLists.txt')
-rw-r--r--launcher/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt
index a0d92b6e..6ca88ec6 100644
--- a/launcher/CMakeLists.txt
+++ b/launcher/CMakeLists.txt
@@ -551,6 +551,24 @@ set(ATLAUNCHER_SOURCES
modplatform/atlauncher/ATLShareCode.h
)
+######## Logging categories ########
+
+ecm_qt_declare_logging_category(CORE_SOURCES
+ HEADER Logging.h
+ IDENTIFIER authCredentials
+ CATEGORY_NAME "launcher.auth.credentials"
+ DEFAULT_SEVERITY Warning
+ DESCRIPTION "Secrets and credentials for debugging purposes"
+ EXPORT "${Launcher_Name}"
+)
+
+if(KDE_INSTALL_LOGGINGCATEGORIESDIR) # only install if there is a standard path for this
+ ecm_qt_install_logging_categories(
+ EXPORT "${Launcher_Name}"
+ DESTINATION "${KDE_INSTALL_LOGGINGCATEGORIESDIR}"
+ )
+endif()
+
################################ COMPILE ################################
set(LOGIC_SOURCES