Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJocelyn Turcotte <jturcotte@woboq.com>2017-05-09 15:24:11 +0300
committerJocelyn Turcotte <jturcotte@woboq.com>2017-05-11 18:22:59 +0300
commit4ad190a558c64aac846dc828438acdec5fe9c6ed (patch)
tree92879909a4036fd51f7ece53654a0474298409c6 /src/gui/sharelinkwidget.cpp
parent3a193655b3bdb9634c753e9e7b73a56469249655 (diff)
Use Qt logging categories for logging
This gives more insight about the logs and allow setting fine-tuned logging rules. The categories are set to only output Info by default so this allows us to provide more concise logging while keeping the ability to extract more information for a specific category when developping or debugging customer issues. Issue #5647
Diffstat (limited to 'src/gui/sharelinkwidget.cpp')
-rw-r--r--src/gui/sharelinkwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp
index 1195edb7f..4885fff5a 100644
--- a/src/gui/sharelinkwidget.cpp
+++ b/src/gui/sharelinkwidget.cpp
@@ -118,7 +118,7 @@ ShareLinkWidget::ShareLinkWidget(AccountPtr account,
//
// _ui->checkBox_shareLink->setEnabled(false);
// uploadExternalFile();
- qDebug() << Q_FUNC_INFO << "Unable to share files not in a sync folder.";
+ qCDebug(lcSharing) << "Unable to share files not in a sync folder.";
return;
}
@@ -181,7 +181,7 @@ void ShareLinkWidget::getShares()
void ShareLinkWidget::slotSharesFetched(const QList<QSharedPointer<Share>> &shares)
{
const QString versionString = _account->serverVersion();
- qDebug() << Q_FUNC_INFO << versionString << "Fetched" << shares.count() << "shares";
+ qCDebug(lcSharing) << versionString << "Fetched" << shares.count() << "shares";
// Preserve the previous selection
QString selectedShareId;
@@ -590,7 +590,7 @@ void ShareLinkWidget::slotServerError(int code, const QString &message)
_pi_password->stopAnimation();
_pi_editing->stopAnimation();
- qDebug() << "Error from server" << code << message;
+ qCDebug(lcSharing) << "Error from server" << code << message;
displayError(message);
}