Skip to content

fix: suppress duplicate "The log output cannot be saved" popups - #9539

Merged
mgallien merged 1 commit into
masterfrom
codex/fix-duplicate-log-output-error-popups
Feb 27, 2026
Merged

fix: suppress duplicate "The log output cannot be saved" popups#9539
mgallien merged 1 commit into
masterfrom
codex/fix-duplicate-log-output-error-popups

Conversation

@Rello

@Rello Rello commented Feb 27, 2026

Copy link
Copy Markdown
Collaborator

Motivation

  • Prevent users from being flooded with repeated error dialogs when the logger cannot open or rotate log files (for example when disk is full).

Description

  • Added a private bool _didShowLogWriteError to Logger to record whether the write-failure dialog has already been shown.
  • Updated setLogFileNoLock to show the "The log output cannot be saved" popup only once per persistent failure and reset the flag after a successful open.
  • Applied the same one-time-popup behavior to setPermanentDeleteLogFileNoLock so both normal and permanent-delete log outputs behave consistently.

@Rello

Rello commented Feb 27, 2026

Copy link
Copy Markdown
Collaborator Author

fixes #9519

@Rello Rello added this to the 33.0.0 milestone Feb 27, 2026
@Rello

Rello commented Feb 27, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable-33.0

@mgallien
mgallien enabled auto-merge February 27, 2026 16:36
@mgallien
mgallien force-pushed the codex/fix-duplicate-log-output-error-popups branch from b957d96 to 738c822 Compare February 27, 2026 16:36
@nilsding
nilsding force-pushed the codex/fix-duplicate-log-output-error-popups branch from 738c822 to acc7b6a Compare February 27, 2026 17:45
@github-actions

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-9539.zip

Digest: sha256:0af7b2edd203239bc4df140c8943d1257ca0209d9b57923880a8b3597af73050

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien
mgallien merged commit 7f01a74 into master Feb 27, 2026
22 checks passed
@mgallien
mgallien deleted the codex/fix-duplicate-log-output-error-popups branch February 27, 2026 18:22
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
E Maintainability Rating on New Code (required ≥ A)
11 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@mgallien mgallien modified the milestones: 33.0.0, 34.0.0 Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: The log output cannot be saved! UX: Multiple duplicate popups when the disk is full

3 participants