Skip to content

Commit

Permalink
(fix) proxy - show detailed_debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Jan 8, 2024
1 parent dd78782 commit 5d7646b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions litellm/_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ def print_verbose(print_statement):

# Add the handler to the logger
verbose_router_logger.addHandler(handler)
verbose_proxy_logger.addHandler(handler)
4 changes: 4 additions & 0 deletions litellm/proxy/proxy_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,12 +965,16 @@ async def initialize(
from litellm._logging import verbose_router_logger, verbose_proxy_logger
import logging

# this must ALWAYS remain logging.INFO, DO NOT MODIFY THIS

verbose_router_logger.setLevel(level=logging.INFO) # set router logs to info
verbose_proxy_logger.setLevel(level=logging.INFO) # set proxy logs to info
if detailed_debug == True:
from litellm._logging import verbose_router_logger, verbose_proxy_logger
import logging

verbose_router_logger.setLevel(level=logging.DEBUG) # set router logs to info
verbose_proxy_logger.setLevel(level=logging.DEBUG) # set proxy logs to debug
litellm.set_verbose = True

dynamic_config = {"general": {}, user_model: {}}
Expand Down

0 comments on commit 5d7646b

Please sign in to comment.