Conversation
|
I will add changelog after initial review / confirmation this looks like the direction we want. |
rsconnect/api.py
Outdated
| + "The app might not have started successfully. " | ||
| + "Visit it in Connect to view the logs." | ||
| + "The app might not have started successfully." | ||
| + f"\n\tFor more information: {self.app_config(app_guid)['logs_url']}" |
There was a problem hiding this comment.
New line + tab to match the other URLs that get put in the output, but that's not strictly necessary.
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
Looks like the error message is printed twice? And is indented one space less than the other messages? |
Yeah, it is. I tried to find where/why this was once, but didn't get to the bottom of it and wanted to get this up. I will keep looking though (or at least create an issue to fix it). The duplication is not a result of these changes though.
Ah, right indeed. those other messages have |
Ok, with some more digging, I think this was introduced in #244 and ultimately what happens is the logger is printed to and then it is printed to the console. Though I cannot find any discussion in the PR or linked refactor issues issue about if this is the desired behavior and why. I would be supportive of (probably in a separate PR) exploring if the |
rsconnect/api.py
Outdated
| + "The app might not have started successfully. " | ||
| + "Visit it in Connect to view the logs." | ||
| + "The app might not have started successfully." | ||
| + f"\n\t For more information: {self.app_config(app_guid)['logs_url']}" |
There was a problem hiding this comment.
The paranoid programmer in me says to avoid the possible KeyError before the exception is raised.
| + f"\n\t For more information: {self.app_config(app_guid)['logs_url']}" | |
| + f"\n\tFor more information: {self.app_config(app_guid).get('logs_url')}" |
There was a problem hiding this comment.
(1) yes, agreed about the key error (2) the there is (sadly) intentional to avoid needing to s/\t /\t/g elsewhere
|
@tdstein any thoughts on:
|
This predates me as well. I think a separate PR to remove the duplication is correct. My guess is that the intent is for |
|
The failures are on main as well, I made #644 for those. |
Intent
Add the logs URL to the error message so that folks find the logs easier.
Resolves: #636
Type of Change
Approach
Fetch and add the logs URL to the error message
Automated Tests
None were broken or added.
Directions for Reviewers
Output from testing this locally:
Checklist