File size: 510 Bytes
201b13c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from core.logger import setup_logger, logger


def main():
    """
    Entry point of the application.
    """

    setup_logger()
    logger.info("Starting Manufacturing Monitoring System...")

    try:
        # Import here to avoid circular dependencies
        from live_camera import main as run_system

        run_system()

    except Exception as e:
        logger.error(f"Application failed: {e}")

    finally:
        logger.info("System shutdown complete.")


if __name__ == "__main__":
    main()