Skip to content

Commit b58f36f

Browse files
authored
Adding an optional DEBUG=1 ./manage.py start ... (#578)
to get full stacktraces.
1 parent 46843f5 commit b58f36f

File tree

1 file changed

+2
-0
lines changed
  • api-inference-community/api_inference_community

1 file changed

+2
-0
lines changed

api-inference-community/api_inference_community/routes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ def emit(self, record):
6565

6666
status_code = 200
6767
n_characters = 0
68+
if os.getenv("DEBUG", "0") in {"1", "true"}:
69+
outputs = pipe(inputs)
6870
try:
6971
outputs = pipe(inputs)
7072
n_characters = get_input_characters(inputs)

0 commit comments

Comments
 (0)