Repository navigation
[Serve] Improve logs for new Serve REST API - #25610
Merged
Merged
Conversation
| existing_route_endpoint = self._get_endpoint_for_route(endpoint_info.route) | ||
| if existing_route_endpoint is not None and existing_route_endpoint != endpoint: | ||
| logger.warn( | ||
| logger.debug( |
Contributor
Author
There was a problem hiding this comment.
This isn't ideal since generally users should be warned when they're overwriting existing route_prefixes. However, this message always gets logged when a new driver is submitted through the REST API, since it'll replace the old driver's "/" prefix. That prints an unnecessary WARNING log, even though nothing's wrong.
simon-mo
approved these changes
Jun 9, 2022
| serve.run(app) | ||
| except KeyboardInterrupt: | ||
| logger.debug("Existing config deployment request terminated.") | ||
| pass |
| # Run the graph locally on the cluster | ||
| serve.start(_override_controller_namespace="serve") | ||
| serve.run(app) | ||
| except KeyboardInterrupt: |
Contributor
There was a problem hiding this comment.
comment about when this can happen ("ray.cancel" called)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
The Serve REST API logs scary messages when Serve is operating normally. For example, this is in the traceback when a new deployment graph is deployed:
However, Serve is working normally in this traceback.
This change improves the logging by:
KeyboardInterruptexception.route_prefixre-registration message to a debug message instead of a warning.Related issue number
N/A
Checks
scripts/format.shto lint the changes in this PR.