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 5ef5280

Browse filesBrowse files
committed
Log server exceptions to stdout
1 parent f0af1c7 commit 5ef5280
Copy full SHA for 5ef5280

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-1
lines changed

‎llama_cpp/server/app.py

Copy file name to clipboardExpand all lines: llama_cpp/server/app.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import json
23
import multiprocessing
34
import time
@@ -241,7 +242,7 @@ def error_message_wrapper(
241242
] = None,
242243
) -> Tuple[int, ErrorResponse]:
243244
"""Wraps error message in OpenAI style error response"""
244-
245+
print(f"Exception: {str(error)}", file=sys.stderr)
245246
if body is not None and isinstance(
246247
body,
247248
(

0 commit comments

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