-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Add verbose output to nextstrain remote
(and potentially other CLI commands)
#201
Comments
@corneliusroemer Can you confirm that this specific error is still a problem with the recent fix to nextstrain.org's authentication framework? |
I think this issue wasn't about the specific error—that's #202—but instead the inability to find out more details of what |
Yep, @tsibley correctly guessed at my intentions. When debugging, I was looking for a Maybe something to bear in mind in the future when adding more functionality. Hence ENH. I agree, it's low priority. |
FWIW, the URL requested is shown in normal output; it's For the actual underlying error, the exception is raised cli/nextstrain/cli/__init__.py Lines 34 to 36 in 72500a8
I agree it'd be useful to have a global way to surface that. |
At the moment, this only enables printing of stack traces and the full exception chain for handled (i.e. anticipated) errors, which otherwise were not printed. In the future, this mode can also control the output of verbose debugging/troubleshooting logging for more commands. Related to <#201>.
Just coming back to this as I have the same use case: I would like to understand how
which would help me with debugging #272. A verbosity flag would really be great to have. But I see here in this issue that you have added a "debugging mode" controlled by I just tested that debug logging but it doesn't change the output at all (maybe I had already got that env variable set or there's just no difference). |
Invocations of these two workhorses of the codebase are often useful to see during debugging and development. Debug logging is still very primitive in this codebase. Related-to: <#201>
Coming back to this again, I would have loved to have The reason nothing happened is just that the cluster is really slow at loading various Python files so even to get the argparse error takes 10 seconds |
@corneliusroemer in your example above, what would you expect the debug output to provide? Argparse validation happens very early on, so there's not much to report. I can only come up with something like this:
If Python file loading is the bottleneck, these debug messages might also take 10 seconds to appear. |
In the case of No need to say "importing XYZ" of course or argparse stuff. Knowing that things were slow before a request was sent would quickly tell me that it's just slow file system as opposed to network latency etc Verbose output is always helpful to figure out what's going on, even when you don't see anything as that still tells you that the program is not even somewhere where it would print anything. Maybe there's a misunderstanding, I don't think we need -v to do anything for the case if adding unrecognized arguments. But to things like nextstrain login. |
I see, the issue is not having any output from |
Context
I'm getting an error when uploading but it's not clear what the issue is from the messages I'm getting.
I feel like it would be helpful to have more verbose output to at least have a clue at which point something fails
Description
Add a flag
--verbose
tonextstrain remote
that shows connection attempts etc.Examples
This should work:
Example use case
This is the error I get, doesn't make much sense in my case
The text was updated successfully, but these errors were encountered: