mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
fix(proxy): add missing return when Pyroscope profiling is disabled
Without the return, _init_pyroscope would fall through into the try block and raise ValueError when PYROSCOPE_APP_NAME was not set, even when LITELLM_ENABLE_PYROSCOPE was false. This caused CI failures on Linux where pyroscope-io is installed.
This commit is contained in:
parent
ff79500e98
commit
4c2f80e417
1 changed files with 1 additions and 0 deletions
|
|
@ -5831,6 +5831,7 @@ class ProxyStartupEvent:
|
|||
verbose_proxy_logger.debug(
|
||||
"LiteLLM: Pyroscope profiling is disabled (set LITELLM_ENABLE_PYROSCOPE=true to enable)."
|
||||
)
|
||||
return
|
||||
try:
|
||||
import pyroscope
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue