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

Silence warning about unused callbacks to fix pumactl restart #8434

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

SuperTux88
Copy link
Member

The callbacks aren't used in cluster mode, and puma prints a warning about that. This is fine, we don't need the callbacks in single mode, but can still keep it, in case somebody switches on cluster mode.

The problem is, the current puma version has a bug (I opened puma/puma#3186 for that), where pumactl crashes when trying to print these warnings, so lets just silence the warnings. People running in single mode also don't need to care about the warnings anyway.

The alternative would be to remove the callbacks, but they don't do any harm when they aren't used, but are maybe useful when somebody wants to enable cluster mode. So as they are already there (even when we never used cluster mode by default), I think keeping them and silence the warning is the better option?

The callbacks aren't used in cluster mode, and puma prints a warning
about that. This is fine, we don't need the callbacks in single-mode,
but can still keep it, in case somebody switches on cluster mode.

The problem is, the current puma version has a bug, where pumactl
crashes when trying to print these warnings, so lets just silence the
warnings. People running in single mode also don't need to care about
the warnings anyway.
@SuperTux88 SuperTux88 added this to the 1.0.0 milestone Jun 29, 2023
@SuperTux88 SuperTux88 requested a review from denschub June 29, 2023 01:24
@SuperTux88 SuperTux88 merged commit 8d38193 into diaspora:develop Jun 29, 2023
13 checks passed
@SuperTux88 SuperTux88 deleted the fix-pumactl-restart branch June 29, 2023 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants