everything working and tested on separate computer
This commit is contained in:
@@ -315,6 +315,12 @@ def open_browser(port):
|
||||
|
||||
def main():
|
||||
"""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()
|
||||
print(f"Starting ESP32 Flasher on port {port}...")
|
||||
print(f"Open your browser to: http://127.0.0.1:{port}")
|
||||
@@ -327,7 +333,7 @@ def main():
|
||||
|
||||
# Run Flask server with SocketIO
|
||||
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:
|
||||
print('\nShutting down...')
|
||||
except SystemExit:
|
||||
|
||||
Reference in New Issue
Block a user