mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix: change all verbose_logger.warning → info in websearch handler
Per Sameerlite's review: warning-level logs trigger Slack alerts. All 6 remaining .warning() calls were operational/fallback messages, not actual errors. Changed to .info() to match the first fix at L510. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
b04ba60e6e
commit
660de94493
1 changed files with 6 additions and 6 deletions
|
|
@ -555,7 +555,7 @@ class WebSearchInterceptionLogger(CustomLogger):
|
|||
)
|
||||
search_tasks.append(self._execute_search(query))
|
||||
else:
|
||||
verbose_logger.warning(
|
||||
verbose_logger.info(
|
||||
f"WebSearchInterception: Tool call {tool_call['id']} has no query"
|
||||
)
|
||||
# Add empty result for tools without query
|
||||
|
|
@ -582,7 +582,7 @@ class WebSearchInterceptionLogger(CustomLogger):
|
|||
final_search_results.append(cast(str, result))
|
||||
else:
|
||||
# Should never happen, but handle for type safety
|
||||
verbose_logger.warning(
|
||||
verbose_logger.info(
|
||||
f"WebSearchInterception: Unexpected result type {type(result)} at index {i}"
|
||||
)
|
||||
final_search_results.append(str(result))
|
||||
|
|
@ -673,7 +673,7 @@ class WebSearchInterceptionLogger(CustomLogger):
|
|||
try:
|
||||
from litellm.proxy.proxy_server import llm_router
|
||||
except ImportError:
|
||||
verbose_logger.warning(
|
||||
verbose_logger.info(
|
||||
"WebSearchInterception: Could not import llm_router from proxy_server, "
|
||||
"falling back to direct litellm.asearch() with perplexity"
|
||||
)
|
||||
|
|
@ -696,7 +696,7 @@ class WebSearchInterceptionLogger(CustomLogger):
|
|||
f"with provider '{search_provider}'"
|
||||
)
|
||||
else:
|
||||
verbose_logger.warning(
|
||||
verbose_logger.info(
|
||||
f"WebSearchInterception: Search tool '{self.search_tool_name}' not found in router, "
|
||||
"falling back to first available or perplexity"
|
||||
)
|
||||
|
|
@ -770,7 +770,7 @@ class WebSearchInterceptionLogger(CustomLogger):
|
|||
)
|
||||
search_tasks.append(self._execute_search(query))
|
||||
else:
|
||||
verbose_logger.warning(
|
||||
verbose_logger.info(
|
||||
f"WebSearchInterception: Tool call {tool_call.get('id')} has no query"
|
||||
)
|
||||
# Add empty result for tools without query
|
||||
|
|
@ -795,7 +795,7 @@ class WebSearchInterceptionLogger(CustomLogger):
|
|||
elif isinstance(result, str):
|
||||
final_search_results.append(cast(str, result))
|
||||
else:
|
||||
verbose_logger.warning(
|
||||
verbose_logger.info(
|
||||
f"WebSearchInterception: Unexpected result type {type(result)} at index {i}"
|
||||
)
|
||||
final_search_results.append(str(result))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue