Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't spam the log with fatals when maintenance mode is enabled or an… #32800

Merged
merged 1 commit into from
Jun 10, 2022

Conversation

nickvergessen
Copy link
Member

… upgrade has to be done

Signed-off-by: Joas Schilling coding@schilljs.com

… upgrade has to be done

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen added this to the Nextcloud 25 milestone Jun 9, 2022
if (isset($this->nonFatalExceptions[$exceptionClass]) ||
(
$exceptionClass === ServiceUnavailable::class &&
$ex->getMessage() === 'System in maintenance mode.'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This string did not match the english source string.
But even then it was translated so for non-english people it would still have logged fatal

@nickvergessen
Copy link
Member Author

/backport to stable24

@nickvergessen
Copy link
Member Author

/backport to stable23

@nickvergessen
Copy link
Member Author

/backport to stable22

@nickvergessen nickvergessen requested review from juliusknorr and a team June 10, 2022 11:08
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PVince81 PVince81 merged commit 08655a1 into master Jun 10, 2022
@PVince81 PVince81 deleted the bugfix/noid/no-fatal-for-maintenance-mode branch June 10, 2022 13:02
@backportbot-nextcloud
Copy link

The backport to stable24 failed. Please do this backport manually.

@nickvergessen
Copy link
Member Author

/backport to stable24

@backportbot-nextcloud
Copy link

The backport to stable23 failed. Please do this backport manually.

@backportbot-nextcloud
Copy link

The backport to stable24 failed. Please do this backport manually.

@backportbot-nextcloud
Copy link

The backport to stable22 failed. Please do this backport manually.

@nickvergessen
Copy link
Member Author

/backport to stable24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants