refactor(Logging): calibrate default levels and reduce playback noise

Serial default VERBOSE→INFO, MQTT default NONE→WARNING, SD NONE→WARNING.
Per-subsystem MQTT caps added in CommunicationRouter: BellEngine/
OutputManager/HealthMonitor/ConfigManager at WARNING to silence per-note
and per-poll spam; Player/Telemetry/OTAManager at INFO to keep state
transitions visible.

Remove early Logging::setLevel() call in main.cpp — CommunicationRouter
applies all three channels once the MQTT callback is wired. Loop heartbeat
downgraded DEBUG→VERBOSE. HealthMonitor polling noise (skipping/performing
lines) removed; subsystem status and completion lines VERBOSE→DEBUG.
FirmwareValidator boot-path checks VERBOSE→INFO (one-shot, worth seeing).
ConfigManager isHealthy() false-branches and NVS read trace VERBOSE→DEBUG.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-09 10:01:19 +03:00
co-authored by Claude Sonnet 4.6
parent 67da788738
commit 3d90ed4292
6 changed files with 43 additions and 39 deletions
+7 -10
View File
@@ -97,13 +97,10 @@ void HealthMonitor::monitoringLoop() {
if (_player) {
if (_player->_status != PlayerStatus::STOPPED) {
LOG_VERBOSE(TAG, "⏸️ Skipping health check during active playback");
return;
}
}
LOG_VERBOSE(TAG, "🔍 Performing periodic health check...");
HealthStatus overallHealth = performFullHealthCheck();
// Log warnings for any unhealthy subsystems
@@ -136,7 +133,7 @@ void HealthMonitor::monitoringLoop() {
}
}
} else {
LOG_VERBOSE(TAG, "✅ All subsystems healthy");
LOG_DEBUG(TAG, "✅ All subsystems healthy");
}
}
@@ -248,7 +245,7 @@ HealthStatus HealthMonitor::performFullHealthCheck() {
#endif
unsigned long elapsed = millis() - startTime;
LOG_VERBOSE(TAG, "🔍 Health check completed: %d systems in %lums", checkedSystems, elapsed);
LOG_DEBUG(TAG, "Health check: %d systems in %lums", checkedSystems, elapsed);
return calculateOverallHealth();
}
@@ -420,10 +417,10 @@ void HealthMonitor::updateSubsystemHealth(const String& name, HealthStatus statu
it->second.lastError = error;
it->second.lastCheck = millis();
LOG_VERBOSE(TAG, "🔍 %s: %s %s",
name.c_str(),
healthStatusToString(status).c_str(),
error.isEmpty() ? "" : ("(" + error + ")").c_str());
LOG_DEBUG(TAG, "%s: %s %s",
name.c_str(),
healthStatusToString(status).c_str(),
error.isEmpty() ? "" : ("(" + error + ")").c_str());
// Fire alert callback only on actual state change
if (_alertCallback && status != previousStatus) {