Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
98b8b3ab
Unverified
Commit
98b8b3ab
authored
Jan 05, 2026
by
Ning Xie
Committed by
GitHub
Jan 05, 2026
Browse files
[log] enable max_log_len trim only when needed (#31482)
Signed-off-by:
Andy Xie
<
andy.xning@gmail.com
>
parent
346e5645
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
vllm/entrypoints/logger.py
vllm/entrypoints/logger.py
+17
-15
No files found.
vllm/entrypoints/logger.py
View file @
98b8b3ab
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import
logging
from
collections.abc
import
Sequence
from
collections.abc
import
Sequence
import
torch
import
torch
...
@@ -26,6 +27,7 @@ class RequestLogger:
...
@@ -26,6 +27,7 @@ class RequestLogger:
params
:
SamplingParams
|
PoolingParams
|
BeamSearchParams
|
None
,
params
:
SamplingParams
|
PoolingParams
|
BeamSearchParams
|
None
,
lora_request
:
LoRARequest
|
None
,
lora_request
:
LoRARequest
|
None
,
)
->
None
:
)
->
None
:
if
logger
.
isEnabledFor
(
logging
.
DEBUG
):
max_log_len
=
self
.
max_log_len
max_log_len
=
self
.
max_log_len
if
max_log_len
is
not
None
:
if
max_log_len
is
not
None
:
if
prompt
is
not
None
:
if
prompt
is
not
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment