[Bugfix] Fix print_warning_once's line info (#8867)
This commit is contained in:
parent
b28d2104de
commit
e2f6f26e86
@ -744,7 +744,8 @@ def create_kv_caches_with_random(
|
||||
|
||||
@lru_cache
|
||||
def print_warning_once(msg: str) -> None:
|
||||
logger.warning(msg)
|
||||
# Set the stacklevel to 2 to print the caller's line info
|
||||
logger.warning(msg, stacklevel=2)
|
||||
|
||||
|
||||
@lru_cache(maxsize=None)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user