[core] Convert the log from exception to warning for setup function (#16225)

This commit is contained in:
Yi Cheng 2021-06-03 21:53:29 -07:00 committed by GitHub
parent 6be5ec8f39
commit dea178caac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}")