change server to enable debug and not output body output getting very long

This commit is contained in:
2024-04-12 23:10:00 +02:00
parent 5e63d0b35e
commit 3aec07a7e7
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import logging
import os
import typing
from config import DEBUG
from flask import Flask
from flask import request
@@ -42,4 +43,4 @@ def run_server(handlers: typing.Dict):
logging.getLogger("werkzeug").setLevel(logging.ERROR)
print(f"\nRunning Battlesnake at http://{host}:{port}")
app.run(host=host, port=port)
app.run(host=host, port=port, debug=DEBUG)