aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindow.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2023-02-11 14:10:09 +0000
committerSaturneric <[email protected]>2023-02-11 14:10:09 +0000
commit6a75817c85b0d4a97cea82ad2331736cff9913cf (patch)
tree261b01c4dc55a28241694a5e292d9fc5c77b6319 /src/ui/main_window/MainWindow.cpp
parentfeat: upgrade qt framework to 6.3 (diff)
downloadGpgFrontend-6a75817c85b0d4a97cea82ad2331736cff9913cf.tar.gz
GpgFrontend-6a75817c85b0d4a97cea82ad2331736cff9913cf.zip
fix: reduce info level logs
Diffstat (limited to 'src/ui/main_window/MainWindow.cpp')
-rw-r--r--src/ui/main_window/MainWindow.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/ui/main_window/MainWindow.cpp b/src/ui/main_window/MainWindow.cpp
index aea84c32..fff3ab63 100644
--- a/src/ui/main_window/MainWindow.cpp
+++ b/src/ui/main_window/MainWindow.cpp
@@ -109,7 +109,7 @@ void MainWindow::Init() noexcept {
bool show_wizard = true;
wizard.lookupValue("show_wizard", show_wizard);
- SPDLOG_INFO("wizard show_wizard: {}", show_wizard);
+ SPDLOG_DEBUG("wizard show_wizard: {}", show_wizard);
if (show_wizard) {
slot_start_wizard();
@@ -131,7 +131,7 @@ void MainWindow::Init() noexcept {
// before application exit
connect(qApp, &QCoreApplication::aboutToQuit, this, []() {
- SPDLOG_INFO("about to quit process started");
+ SPDLOG_DEBUG("about to quit process started");
auto &settings = GlobalSettingStation::GetInstance().GetUISettings();
try {
@@ -141,7 +141,7 @@ void MainWindow::Init() noexcept {
if (clear_gpg_password_cache) {
if (GpgFrontend::GpgAdvancedOperator::GetInstance()
.ClearGpgPasswordCache()) {
- SPDLOG_INFO("clear gpg password cache done");
+ SPDLOG_DEBUG("clear gpg password cache done");
} else {
SPDLOG_ERROR("clear gpg password cache error");
}
@@ -162,10 +162,8 @@ void MainWindow::Init() noexcept {
}
void MainWindow::restore_settings() {
- SPDLOG_INFO("called");
-
try {
- SPDLOG_INFO("restore settings key_server");
+ SPDLOG_DEBUG("restore settings key_server");
SettingsObject key_server_json("key_server");
if (!key_server_json.contains("server_list") ||
@@ -201,7 +199,7 @@ void MainWindow::restore_settings() {
import_button_->setToolButtonStyle(icon_style_);
try {
- SPDLOG_INFO("restore settings default_key_checked");
+ SPDLOG_DEBUG("restore settings default_key_checked");
// Checked Keys
SettingsObject default_key_checked("default_key_checked");
@@ -209,7 +207,7 @@ void MainWindow::restore_settings() {
auto key_ids_ptr = std::make_unique<KeyIdArgsList>();
for (auto &it : default_key_checked) {
std::string key_id = it;
- SPDLOG_INFO("get checked key id: {}", key_id);
+ SPDLOG_DEBUG("get checked key id: {}", key_id);
key_ids_ptr->push_back(key_id);
}
m_key_list_->SetChecked(std::move(key_ids_ptr));
@@ -231,7 +229,7 @@ void MainWindow::restore_settings() {
}
GlobalSettingStation::GetInstance().SyncSettings();
- SPDLOG_INFO("settings restored");
+ SPDLOG_DEBUG("settings restored");
}
void MainWindow::save_settings() {