summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-27 21:40:27 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-27 21:46:24 +0300
commitd5575529b244757b4d5d75b196772131d5575e43 (patch)
tree141f699582c2ad6e393e65cb4295e93bbf84a1c6
parent34f6df585176b38e8cd6744b2b1f7c03aa1d2dd6 (diff)
downloadplus-d5575529b244757b4d5d75b196772131d5575e43.tar.gz
plus-d5575529b244757b4d5d75b196772131d5575e43.tar.bz2
plus-d5575529b244757b4d5d75b196772131d5575e43.tar.xz
plus-d5575529b244757b4d5d75b196772131d5575e43.zip
Show in log information about servers list update.
-rw-r--r--src/gui/windows/serverdialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp
index c8c0256ee..46633fb33 100644
--- a/src/gui/windows/serverdialog.cpp
+++ b/src/gui/windows/serverdialog.cpp
@@ -198,6 +198,8 @@ void ServerDialog::postInit()
if (needUpdateServers())
downloadServerList();
+ else
+ logger->log("Skipping servers list update");
}
ServerDialog::~ServerDialog()
@@ -413,6 +415,7 @@ void ServerDialog::logic()
loadServers();
mDownloadStatus = ServerDialogDownloadStatus::OVER;
mDescription->setCaption(std::string());
+ logger->log("Servers list updated");
}
else if (mDownloadStatus == ServerDialogDownloadStatus::IN_PROGRESS)
{
@@ -434,6 +437,7 @@ void ServerDialog::logic()
{
// TRANSLATORS: servers dialog label
mDescription->setCaption(_("Error retreiving server list!"));
+ logger->log("Error: servers list updating error");
}
}