Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d6a130a

Browse filesBrowse files
committed
Print traceback on server error
1 parent 43dfe1e commit d6a130a
Copy full SHA for d6a130a

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎llama_cpp/server/app.py

Copy file name to clipboardExpand all lines: llama_cpp/server/app.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
22
import json
3+
import traceback
34
import multiprocessing
45
import time
56
from re import compile, Match, Pattern
@@ -243,6 +244,7 @@ def error_message_wrapper(
243244
) -> Tuple[int, ErrorResponse]:
244245
"""Wraps error message in OpenAI style error response"""
245246
print(f"Exception: {str(error)}", file=sys.stderr)
247+
traceback.print_exc(file=sys.stderr)
246248
if body is not None and isinstance(
247249
body,
248250
(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.