aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/init.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 91d02ac8..f9f1801f 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -41,7 +41,7 @@
#include "core/function/GlobalSettingStation.h"
#include "core/utils/MemoryUtils.h"
#include "module/GpgFrontendModuleInit.h"
-#include "spdlog/logger.h"
+#include "module/sdk/Log.h"
#include "ui/GpgFrontendUIInit.h"
// main
@@ -88,7 +88,7 @@ void InitMainLoggingSystem(spdlog::level::level_enum level) {
spdlog::set_default_logger(main_logger);
}
-void InitModules(InitArgs args) {
+void InitLoggingSystem(InitArgs args) {
// init the logging system for main
InitMainLoggingSystem(args.log_level);
@@ -97,21 +97,15 @@ void InitModules(InitArgs args) {
// init the logging system for ui
GpgFrontend::UI::InitUILoggingSystem(args.log_level);
-
- // init the logging system for modules
- GpgFrontend::Module::ModuleInitArgs module_init_args;
- module_init_args.log_level = args.log_level;
- //
- GpgFrontend::Module::LoadGpgFrontendModules(module_init_args);
}
-void ShutdownModules() {
- // shutdown the logging system for core
- GpgFrontend::Module::ShutdownGpgFrontendModules();
-
+void ShutdownLoggingSystem() {
// shutdown the logging system for ui
GpgFrontend::UI::ShutdownUILoggingSystem();
+ // shutdown the logging system for modules
+ GpgFrontend::Module::ShutdownGpgFrontendModulesLoggingSystem();
+
// shutdown the logging system for core
GpgFrontend::ShutdownCoreLoggingSystem();