mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
[core] Convert the log from exception to warning for setup function (#16225)
This commit is contained in:
parent
6be5ec8f39
commit
dea178caac
1 changed files with 3 additions and 1 deletions
|
@ -161,7 +161,9 @@ def _ray_user_setup_function():
|
|||
m = __import__(module_name, globals(), locals(), [fn_name])
|
||||
getattr(m, fn_name)()
|
||||
except Exception as e:
|
||||
logger.exception(
|
||||
# We still need to allow ray to be imported, even there is
|
||||
# something in the setup function.
|
||||
logger.warning(
|
||||
f"Failed to run user setup function: {user_setup_fn}. "
|
||||
f"Error message {e}")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue