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
Add project-name arg to ddev logs
, perhaps other commands that are missing it.
#3203
Comments
|
Yeah, seems like either the feedback message on the snapshot restore command should be updated so you know you have to be in the project directory for it to work, or the logs command needs to be updated so it can use a passed project name. I don't particularly care one way or the other, just wanted to bring it up. If it just updating the message, I can send a PR. The other requires Go skills I don't currently have. |
Actually it's just copy-pasta, sadly. You could look at any of the commands that support it and you'd be able to add it in no time :). I think it would be better to actually add it for consistency. Sadly, I think there are a couple of others that ought to take project name and don't. |
ddev logs
, perhaps other commands that are missing it.
Describe the bug
Restoring a large database, I got this message:
So I tried opening a fresh terminal window and running that command, and got this:
So basically it looks like the logs command doesn't see the project name argument.
To Reproduce
Easiest way to do this would be to change directories to anywhere that isn't a ddev project, then run this:
ddev logs <project-name>
Expected behavior
I would expect the web service log for that project. Instead ddev tells me no project exists.
Version and configuration information (please complete the following information):
The text was updated successfully, but these errors were encountered: