Improve socket controller logging

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-01-30 13:38:28 +08:00
parent 9611e47a3b
commit 71119fe65a

View file

@ -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;
}