refactor: move logging_utils.py deprecation fix to PR #21396

- Remove asyncio.iscoroutinefunction deprecation fix from this PR
- This change is better suited for PR #21396 (deprecation warnings)
- Keeps PR #21394 focused on CI test reliability improvements
This commit is contained in:
Julio Quinteros Pro
2026-02-17 17:11:59 -03:00
parent 48105e650b
commit ab912e5c8d
+1 -2
View File
@@ -1,6 +1,5 @@
import asyncio
import functools
import inspect
import time
from datetime import datetime
from typing import TYPE_CHECKING, Any, List, Optional, Union
@@ -271,7 +270,7 @@ def track_llm_api_timing():
verbose_logger.debug(f"Error in service logging: {str(e)}")
# Check if the function is async or sync
if inspect.iscoroutinefunction(func):
if asyncio.iscoroutinefunction(func):
return async_wrapper
return sync_wrapper