DinoPLayZ commited on
Commit
3e76f54
·
verified ·
1 Parent(s): f34ff33

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -1030,8 +1030,10 @@ if __name__ == "__main__":
1030
  elif args.run:
1031
  # Launch FastAPI which internally starts the loop
1032
  port = int(os.getenv("PORT", 7860))
 
1033
  uvicorn.run(app, host="0.0.0.0", port=port, log_config=LOGGING_CONFIG)
1034
  else:
1035
  # Default behavior: run FastAPI
1036
  port = int(os.getenv("PORT", 7860))
 
1037
  uvicorn.run(app, host="0.0.0.0", port=port, log_config=LOGGING_CONFIG)
 
1030
  elif args.run:
1031
  # Launch FastAPI which internally starts the loop
1032
  port = int(os.getenv("PORT", 7860))
1033
+ print(f"[{datetime.now().isoformat()}] BINDING UVICORN ON PORT {port} WITH EXPLICIT STDOUT LOGGING...", flush=True)
1034
  uvicorn.run(app, host="0.0.0.0", port=port, log_config=LOGGING_CONFIG)
1035
  else:
1036
  # Default behavior: run FastAPI
1037
  port = int(os.getenv("PORT", 7860))
1038
+ print(f"[{datetime.now().isoformat()}] BINDING UVICORN ON PORT {port} WITH EXPLICIT STDOUT LOGGING...", flush=True)
1039
  uvicorn.run(app, host="0.0.0.0", port=port, log_config=LOGGING_CONFIG)