Skip to content

[Messenger] Reduce keepalive request noise #59908

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

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Mar 4, 2025

Q A
Branch? 7.2
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #...
License MIT

Currently messenger:consume --keepalive creates a lot of noise (INFO log every 5 sec by default).

13:34:59 INFO      [messenger] Sending keepalive request.
13:35:04 INFO      [messenger] Sending keepalive request.

I propose to use DEBUG instead. We can also remove this log, since there's already a keepalive log per message ID:

$this->logger?->info('Sending keepalive request.', [
'transport' => $transportName,
'message_id' => $envelope->last(TransportMessageIdStamp::class)?->getId(),
]);

cc @HypeMC

@alexandre-daubois
Copy link
Member

Thank you @ro0NL.

@alexandre-daubois alexandre-daubois merged commit 653e42d into symfony:7.2 Mar 4, 2025
8 of 11 checks passed
@ro0NL ro0NL deleted the patch-1 branch March 4, 2025 13:11
@fabpot fabpot mentioned this pull request Mar 28, 2025
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.

5 participants