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
ebda5196
Unverified
Commit
ebda5196
authored
Nov 22, 2024
by
Russell Bryant
Committed by
GitHub
Nov 23, 2024
Browse files
[Core] Fix broken log configuration (#10458)
Signed-off-by:
Russell Bryant
<
rbryant@redhat.com
>
parent
9195dbdb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
examples/logging_configuration.md
examples/logging_configuration.md
+1
-1
vllm/logger.py
vllm/logger.py
+6
-1
No files found.
examples/logging_configuration.md
View file @
ebda5196
...
...
@@ -118,7 +118,7 @@ configuration for the root vLLM logger and for the logger you wish to silence:
{
"formatters"
:
{
"vllm"
:
{
"class"
:
"vllm.logging.NewLineFormatter"
,
"class"
:
"vllm.logging
_utils
.NewLineFormatter"
,
"datefmt"
:
"%m-%d %H:%M:%S"
,
"format"
:
"%(levelname)s %(asctime)s %(filename)s:%(lineno)d] %(message)s"
}
...
...
vllm/logger.py
View file @
ebda5196
...
...
@@ -50,7 +50,7 @@ DEFAULT_LOGGING_CONFIG = {
def
_configure_vllm_root_logger
()
->
None
:
logging_config
:
Optional
[
Dict
]
=
None
logging_config
:
Dict
=
{}
if
not
VLLM_CONFIGURE_LOGGING
and
VLLM_LOGGING_CONFIG_PATH
:
raise
RuntimeError
(
...
...
@@ -75,6 +75,11 @@ def _configure_vllm_root_logger() -> None:
type
(
custom_config
).
__name__
)
logging_config
=
custom_config
for
formatter
in
logging_config
.
get
(
"formatters"
,
{}).
values
():
# This provides backwards compatibility after #10134.
if
formatter
.
get
(
"class"
)
==
"vllm.logging.NewLineFormatter"
:
formatter
[
"class"
]
=
"vllm.logging_utils.NewLineFormatter"
if
logging_config
:
dictConfig
(
logging_config
)
...
...
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