aboutsummaryrefslogtreecommitdiffstats
path: root/src/module/GpgFrontendModuleInit.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-13 10:01:06 +0000
committersaturneric <[email protected]>2023-12-13 10:01:06 +0000
commit42264ed0d7a3c91fbe9f307984964ffc9e5fe65c (patch)
treea3ddecbd6ad723e42d68cc2c5aed7a88c4e242a3 /src/module/GpgFrontendModuleInit.cpp
parentfeat: move test to src and add submodule googletest (diff)
downloadGpgFrontend-42264ed0d7a3c91fbe9f307984964ffc9e5fe65c.tar.gz
GpgFrontend-42264ed0d7a3c91fbe9f307984964ffc9e5fe65c.zip
refactor: improve the structure of main,core and test module
Diffstat (limited to '')
-rw-r--r--src/module/GpgFrontendModuleInit.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/module/GpgFrontendModuleInit.cpp b/src/module/GpgFrontendModuleInit.cpp
index d322a528..5db3b0b6 100644
--- a/src/module/GpgFrontendModuleInit.cpp
+++ b/src/module/GpgFrontendModuleInit.cpp
@@ -36,11 +36,12 @@
// integrated modules
#include "integrated/gnupg_info_gathering_module/GnuPGInfoGatheringModule.h"
#include "integrated/version_checking_module/VersionCheckingModule.h"
+#include "spdlog/common.h"
namespace GpgFrontend::Module {
-void LoadGpgFrontendModulesLoggingSystem(ModuleInitArgs args) {
- GpgFrontend::Module::SDK::InitModuleLoggingSystem(args.log_level);
+void LoadGpgFrontendModulesLoggingSystem(spdlog::level::level_enum log_level) {
+ GpgFrontend::Module::SDK::InitModuleLoggingSystem(log_level);
}
void ShutdownGpgFrontendModulesLoggingSystem() {
@@ -52,9 +53,6 @@ void LoadGpgFrontendModules(ModuleInitArgs args) {
Thread::TaskRunnerGetter::GetInstance().GetTaskRunner()->PostTask(
new Thread::Task(
[args](const DataObjectPtr&) -> int {
- // init the logging system for module system
- LoadGpgFrontendModulesLoggingSystem(args);
-
MODULE_LOG_INFO("loading integrated module...");
// VersionCheckingModule