follow logging guidelines

This commit is contained in:
J. Nick Koston
2025-06-23 11:59:07 +02:00
parent e3aaf3219d
commit 971e954a54
2 changed files with 2 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ void APIServer::schedule_reboot_timeout_() {
this->status_set_warning();
this->set_timeout("api_reboot", this->reboot_timeout_, []() {
if (!global_api_server->is_connected()) {
ESP_LOGE(TAG, "No client connected; rebooting");
ESP_LOGE(TAG, "No clients; rebooting");
App.reboot();
}
});

View File

@@ -16,7 +16,7 @@ async def test_api_reboot_timeout(
"""Test that the device reboots when no API clients connect within the timeout."""
loop = asyncio.get_running_loop()
reboot_future = loop.create_future()
reboot_pattern = re.compile(r"No client connected; rebooting")
reboot_pattern = re.compile(r"No clients; rebooting")
def check_output(line: str) -> None:
"""Check output for reboot message."""