everything working and tested on separate computer

This commit is contained in:
Brent Perteet
2025-10-27 18:27:55 -05:00
parent de7041c1f5
commit 19e8ca30c3

View File

@@ -315,6 +315,12 @@ def open_browser(port):
def main(): def main():
"""Run the web server""" """Run the web server"""
import logging
# Disable Flask request logging to avoid colorama issues with stdout redirection
log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)
port = get_free_port() port = get_free_port()
print(f"Starting ESP32 Flasher on port {port}...") print(f"Starting ESP32 Flasher on port {port}...")
print(f"Open your browser to: http://127.0.0.1:{port}") print(f"Open your browser to: http://127.0.0.1:{port}")
@@ -327,7 +333,7 @@ def main():
# Run Flask server with SocketIO # Run Flask server with SocketIO
try: try:
socketio.run(app, host='127.0.0.1', port=port, debug=False, allow_unsafe_werkzeug=True) socketio.run(app, host='127.0.0.1', port=port, debug=False, allow_unsafe_werkzeug=True, log_output=False)
except KeyboardInterrupt: except KeyboardInterrupt:
print('\nShutting down...') print('\nShutting down...')
except SystemExit: except SystemExit: