diff options
author | saturneric <[email protected]> | 2024-07-30 18:42:12 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-07-30 18:42:12 +0000 |
commit | dbb4a21931cd10a3caed3c446af0fe06de9873b1 (patch) | |
tree | b3eb2e6fc3e67ea274472dfacfa3451848b43c80 /src/core/GpgCoreInit.cpp | |
parent | fix: solve known issues on build (diff) | |
download | GpgFrontend-dbb4a21931cd10a3caed3c446af0fe06de9873b1.tar.gz GpgFrontend-dbb4a21931cd10a3caed3c446af0fe06de9873b1.zip |
feat: simplify logging
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r-- | src/core/GpgCoreInit.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp index 3e03536a..d0f24824 100644 --- a/src/core/GpgCoreInit.cpp +++ b/src/core/GpgCoreInit.cpp @@ -177,7 +177,7 @@ auto InitGpgME(const QString& gpgconf_path, const QString& gnupg_path) -> bool { // conditional check: only support gpg 2.1.x now if (!(GFCompareSoftwareVersion(gnupg_version, "2.1.0") >= 0 && find_gpgconf && find_openpgp && find_cms)) { - qCWarning(core, "gpgme env check failed, abort"); + FLOG_W("gpgme env check failed, abort"); return false; } @@ -238,8 +238,8 @@ auto DetectGpgConfPath() -> QString { #endif if (!VerifyGpgconfPath(QFileInfo(gnupg_install_fs_path))) { - qCWarning(core) << "core loaded custom gpgconf path is illegal: " - << gnupg_install_fs_path; + LOG_W() << "core loaded custom gpgconf path is illegal: " + << gnupg_install_fs_path; gnupg_install_fs_path = ""; } } @@ -279,8 +279,8 @@ void InitGpgFrontendCore(CoreInitArgs args) { auto gpgconf_install_fs_path = DetectGpgConfPath(); auto gnupg_install_fs_path = DetectGnuPGPath(gpgconf_install_fs_path); - qCInfo(core) << "detected gpgconf path: " << gpgconf_install_fs_path; - qCInfo(core) << "detected gnupg path: " << gnupg_install_fs_path; + LOG_I() << "detected gpgconf path: " << gpgconf_install_fs_path; + LOG_I() << "detected gnupg path: " << gnupg_install_fs_path; // initialize library gpgme if (!InitGpgME(gpgconf_install_fs_path, gnupg_install_fs_path)) { @@ -329,8 +329,8 @@ void InitGpgFrontendCore(CoreInitArgs args) { key_database_fs_path = QFileInfo(custom_gnupg_install_path).absoluteFilePath(); } else { - qCWarning(core) << "custom gpg key database path is not suitable: " - << key_database_fs_path; + LOG_W() << "custom gpg key database path is not suitable: " + << key_database_fs_path; } } else { @@ -369,7 +369,7 @@ void InitGpgFrontendCore(CoreInitArgs args) { // exit if failed if (!ctx.Good()) { - qCWarning(core, "default gnupg context init error, abort"); + FLOG_W("default gnupg context init error, abort"); CoreSignalStation::GetInstance()->SignalBadGnupgEnv( QCoreApplication::tr("GpgME Context initiation failed")); return -1; |