Enhance health check functionality and logging in POE project. Added detailed sensor status reporting to health check response, improved error handling during server startup, and updated logging format for better visibility. Adjusted health check parameters in Nomad configuration for increased stability and monitoring accuracy.

This commit is contained in:
Naab2k3
2025-06-23 10:00:08 +07:00
parent b1e111e3f4
commit cb0ab4c4d3
4 changed files with 83 additions and 15 deletions

View File

@ -11,7 +11,16 @@ Usage:
Author: POE Project
"""
import time
import logging
from sensor_bridge import main_loop
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
logging.info("POE Sensor Bridge starting up...")
# Give the system a moment to initialize
time.sleep(2)
logging.info("Starting main sensor loop...")
main_loop()