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

feat: add logger for warnings and errors withing cached result, introduce dedicated endpoint to get just the health state #313

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tinect
Copy link
Member

@tinect tinect commented Feb 7, 2025

  • I don't see any need, that the healthChecks need the entire data
  • Logging is nice

Instead of logging, we could dispatch an event?

…duce dedicated endpoint to get just the health state
@tinect tinect changed the title feat: add logger for warnings and errors withing cached result, intro… feat: add logger for warnings and errors withing cached result, introduce dedicated endpoint to get just the health state Feb 7, 2025

if ($healthStatus->count() > 0) {
if ($state === SettingsResult::ERROR) {
$this->froshToolsLogger->error('Health check', ['results' => $healthStatus]);
Copy link
Member

Choose a reason for hiding this comment

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

this will log it every x minutes sounds useless

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought: when would be a better time? 🙈 always is really dump.

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