mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-06 15:13:38 +00:00
llama.cpp: Don't suppress llama-server logs
This commit is contained in:
parent
2c4f364339
commit
9488df3e48
1 changed files with 5 additions and 2 deletions
|
|
@ -588,8 +588,11 @@ def filter_stderr_with_progress(process_stderr):
|
|||
print(display_line, end=end_char, file=sys.stderr, flush=True)
|
||||
last_was_progress = (progress < 1.0)
|
||||
|
||||
# skip noise lines
|
||||
elif not (line.startswith(('srv ', 'slot ')) or 'log_server_r: request: GET /health' in line or 'No parser definition detected' in line):
|
||||
# skip health check polling and parser warnings
|
||||
elif 'log_server_r: request: GET /health' in line or 'No parser definition detected' in line:
|
||||
continue
|
||||
|
||||
else:
|
||||
# if we were in progress, finish that line first
|
||||
if last_was_progress:
|
||||
print(file=sys.stderr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue