mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
Improve socket controller logging
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
9611e47a3b
commit
71119fe65a
1 changed files with 5 additions and 5 deletions
|
@ -101,7 +101,7 @@ void FileProviderSocketController::sendMessage(const QString &message) const
|
|||
return;
|
||||
}
|
||||
|
||||
qCDebug(lcFileProviderSocketController) << "Sending File Provider socket message:" << message;
|
||||
qCInfo(lcFileProviderSocketController) << "Sending File Provider socket message:" << message;
|
||||
const auto lineEndChar = '\n';
|
||||
const auto messageToSend = message.endsWith(lineEndChar) ? message : message + lineEndChar;
|
||||
const auto bytesToSend = messageToSend.toUtf8();
|
||||
|
@ -183,8 +183,8 @@ void FileProviderSocketController::sendAccountDetails() const
|
|||
const auto account = _accountState->account();
|
||||
Q_ASSERT(account);
|
||||
|
||||
qCDebug(lcFileProviderSocketController) << "About to send account details to file provider extension"
|
||||
<< account->displayName();
|
||||
qCInfo(lcFileProviderSocketController) << "About to send account details to file provider extension"
|
||||
<< account->displayName();
|
||||
|
||||
// Even though we have XPC send over the account details and related calls when the account state changes, in the
|
||||
// brief window where we start the file provider extension on app startup and the account state changes, we need to
|
||||
|
@ -193,8 +193,8 @@ void FileProviderSocketController::sendAccountDetails() const
|
|||
this, &FileProviderSocketController::slotAccountStateChanged, Qt::UniqueConnection);
|
||||
|
||||
if (!_accountState->isConnected()) {
|
||||
qCDebug(lcFileProviderSocketController) << "Not sending account details yet as account is not connected"
|
||||
<< account->displayName();
|
||||
qCWarning(lcFileProviderSocketController) << "Not sending account details yet as account is not connected"
|
||||
<< account->displayName();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue