Skip to content

Commit

Permalink
Improve domain discovery logging
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jan 2, 2024
1 parent 6c953ce commit ac986ca
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/gui/macOS/fileproviderdomainmanager_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ bool accountFilesPushNotificationsReady(const OCC::AccountPtr &account)

namespace Mac {

class API_AVAILABLE(macos(11.0)) FileProviderDomainManager::MacImplementation {

public:
class API_AVAILABLE(macos(11.0)) FileProviderDomainManager::MacImplementation
{
public:
MacImplementation() = default;
~MacImplementation() = default;

Expand Down Expand Up @@ -139,7 +139,10 @@ void findExistingFileProviderDomains()

} else {
qCInfo(lcMacFileProviderDomainManager) << "Found existing file provider domain with no known configured account:"
<< domain.displayName;
<< domain.displayName
<< accountState
<< (accountState ? "NON-NULL ACCOUNTSTATE" : "NULL")
<< (accountState && accountState->account() ? domainDisplayNameForAccount(accountState->account()) : "NULL");
[NSFileProviderManager removeDomain:domain completionHandler:^(NSError * const error) {
if (error) {
qCWarning(lcMacFileProviderDomainManager) << "Error removing file provider domain: "
Expand Down Expand Up @@ -390,7 +393,8 @@ void signalEnumeratorChanged(const Account * const account)
}
}

QStringList configuredDomainIds() const {
QStringList configuredDomainIds() const
{
return _registeredDomains.keys();
}

Expand Down

0 comments on commit ac986ca

Please sign in to comment.