Skip to content

Commit 5ef5280

Browse files
committed
Log server exceptions to stdout
1 parent f0af1c7 commit 5ef5280

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llama_cpp/server/app.py

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy