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:
9
main.py
9
main.py
@ -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()
|
Reference in New Issue
Block a user