from git_monitor.logger import logger from git_monitor.tray_app import TrayApp class Application: def __init__(self): logger.info("Application starting...") self.tray_app = TrayApp() def run(self): try: self.tray_app.run() except KeyboardInterrupt: logger.info("Application stopped by user.") except Exception as e: logger.error(f"Application error: {e}") if __name__ == "__main__": app = Application() app.run()