-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance logging. #613
Enhance logging. #613
Conversation
bcf1b70
to
1627c13
Compare
I am open to opinion from other colleagues, but i was very used to set log-level=DEBUG to see litellm outpout, so i could see input/output that is sent to LLMs. With this change i cannot see them anymore. So we either improve our debug logs a bit more to include those outputs, or we should be able to set log levels to litellm to the same level as we pass by parameter |
+1 quite often I need to see what is it that we are sending. I don't know if we can tune litellm debug levels any further, but this is the kind of a request I like to see:
I don't care about these:
But I'd rather have them than not have any. I wonder if there would be a compromise to set them as another log level (trace or libs or whatnot)? |
we should be able to bring the others loggers in , i planned on making it so you could configure what other loggers are allowed in, this way you can switch off stuff like asyncio that is really loud when coupled with sqlalchemy I had old branch I never completed work on, where I did something like this to make it configurable: # Configure logger levels for different components
for logger_name, level in logger_levels.items():
logger = logging.getLogger(logger_name)
logger.setLevel(level)
logger.propagate = True
# Default logger levels if not specified
if "uvicorn" not in logger_levels:
logging.getLogger("uvicorn").setLevel(log_level.value)
if "sqlalchemy" not in logger_levels:
logging.getLogger("sqlalchemy").setLevel(log_level.value)
if "asyncio" not in logger_levels:
logging.getLogger("asyncio").setLevel(log_level.value) |
f75942e
to
a499aec
Compare
This change adds line numbers to log messages, and synergizes with Copilot specific changes that make exception handling in some of the copilot pipeline more localized, making it easier to track down issues with the proxy. There's no fundamental change in business logic.
a499aec
to
230c2fb
Compare
This change adds line numbers to log messages, and synergizes with Copilot specific changes that make exception handling in some of the copilot pipeline more localized, making it easier to track down issues with the proxy. There's no fundamental change in business logic.