Skip to content

Commit

Permalink
Improve socket controller logging
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Feb 7, 2024
1 parent d1e2147 commit dfa91fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gui/macOS/fileprovidersocketcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand All @@ -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;
}

Expand Down

0 comments on commit dfa91fa

Please sign in to comment.