log-cache-cli icon indicating copy to clipboard operation
log-cache-cli copied to clipboard

tail subcommand doesn't give any warning of a typo

Open thepeterstone opened this issue 7 years ago • 3 comments

If I had the app logspinner, but did the command for cf log-cache tail logzpinner, it would succeed. It looks like it assumes that I am looking for a bosh component and therefore doesn't complain.

However, we could look at meta, and give a warning that the given source-id doesn't exist in log-cache.

thepeterstone avatar Feb 26 '18 23:02 thepeterstone

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/155537283

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Feb 26 '18 23:02 cf-gitbot

@thepeterstone this is not trivial to implement as the app names are unique in a space. Even if we try to the implement this, the name could be from another app. Therefore it is always better to use an app GUID instead of the app name ;)

chombium avatar Oct 24 '23 05:10 chombium

I think there probably is a quality-of-life improvement where we could at least print a warning if nothing matches the source ID / app name.

e.g. "Warning: Provided source ID / app name does not match any source IDs in Log Cache or apps in this space."

ctlong avatar Oct 27 '23 16:10 ctlong