Skip to content

player-counter: stop logging failed queries as application errors - #164

Open
Martindob wants to merge 1 commit into
pelican:mainfrom
Martindob:fix/player-counter-query-error-logging
Open

Martindob wants to merge 1 commit into
pelican:mainfrom
Martindob:fix/player-counter-query-error-logging

Conversation

@Martindob

Copy link
Copy Markdown

Every query schema called report($exception) whenever a query attempt failed - which happens on every server restart, boot-up window, or brief network hiccup, not just genuine bugs. With the players widget polling every 30s, this spammed the log for something completely routine. The UI already reflects an unreachable server as offline/unknown without needing a log entry for it.

Drops the report() calls in all query schemas (Java query+ping, Bedrock, Source/GoldSource, CitizenFX, Palworld). Exceptions are still caught and swallowed exactly as before, just without logging.

Every query schema called report(\$exception) whenever a query
attempt failed, which fires on any restart, boot-up window, or brief
network hiccup - not just genuine bugs. With the players widget
polling every 30s, this spammed the log on something completely
routine: the queried server (or proxy) not answering yet. The UI
already reflects an unreachable server as offline/unknown without
needing a log entry for it.

Drop the report() calls in all six query schemas (Java query+ping,
Bedrock, Source/GoldSource, CitizenFX, Palworld); the proxy schema
inherits the Java ones, so this covers it too. The exceptions are
still caught and swallowed exactly as before, just without logging.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SA9aNschKoWLmWkWNC2fGZ
@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 10 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 40cb8ff3-1c6c-4187-af55-4c5303aa672b

📥 Commits

Reviewing files that changed from the base of the PR and between 9610734 and e9a115c.

📒 Files selected for processing (5)
  • player-counter/src/Extensions/Query/Schemas/CitizenFXQueryTypeSchema.php
  • player-counter/src/Extensions/Query/Schemas/MinecraftBedrockQueryTypeSchema.php
  • player-counter/src/Extensions/Query/Schemas/MinecraftJavaQueryTypeSchema.php
  • player-counter/src/Extensions/Query/Schemas/PalworldQueryTypeSchema.php
  • player-counter/src/Extensions/Query/Schemas/SourceQueryTypeSchema.php

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

2 participants