mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 11:48:56 +03:00
Just use davUser as account identifier for macOS log filename
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
985043490c
commit
3f0e75b944
1 changed files with 7 additions and 1 deletions
|
@ -150,7 +150,13 @@ bool createDebugArchive(const QString &filename)
|
|||
const auto xpc = fileProvider->xpc();
|
||||
const auto vfsAccounts = OCC::Mac::FileProviderSettingsController::instance()->vfsEnabledAccounts();
|
||||
for (const auto &accountUserIdAtHost : vfsAccounts) {
|
||||
const auto vfsLogFilename = QStringLiteral("macOS_vfs_%1.log").arg(accountUserIdAtHost);
|
||||
const auto accountState = OCC::AccountManager::instance()->accountFromUserId(accountUserIdAtHost);
|
||||
if (!accountState) {
|
||||
qWarning() << "Could not find account for" << accountUserIdAtHost;
|
||||
continue;
|
||||
}
|
||||
const auto account = accountState->account();
|
||||
const auto vfsLogFilename = QStringLiteral("macOS_vfs_%1.log").arg(account->davUser());
|
||||
const auto vfsLogPath = tempDir.filePath(vfsLogFilename);
|
||||
xpc->createDebugArchiveForExtension(accountUserIdAtHost, vfsLogPath);
|
||||
zip.addLocalFile(vfsLogPath, vfsLogFilename);
|
||||
|
|
Loading…
Reference in a new issue