-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[serve] configure logging for build app task
Configure logging for the `build_serve_application` task. Although it is a short-lived task, it is part of every application deployment process, and this can improve observability for the deployment process. Added some light logging to the task as well. Example: ``` INFO 2024-07-01 16:54:13,660 build_default_task 15893 application_state.py:1047 - Importing application 'default'. WARNING 2024-07-01 16:54:13,660 build_default_task 15893 api.py:432 - The default value for `max_ongoing_requests` has changed from 100 to 5 in Ray 2.32.0. ERROR 2024-07-01 16:54:13,661 build_default_task 15893 application_state.py:1077 - Exception importing application 'default'. Traceback (most recent call last): File "/Users/cindyz/ray/python/ray/serve/_private/application_state.py", line 1049, in build_serve_application app = call_app_builder_with_args_if_necessary(import_attr(import_path), args) File "/Users/cindyz/ray/python/ray/_private/utils.py", line 1194, in import_attr return getattr(module, attr_name) AttributeError: module 'hello' has no attribute 'haa' ``` Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
- Loading branch information
Showing
2 changed files
with
45 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters