Debug-Log CLI / API Changes

Richard Harding rick.harding at canonical.com
Tue Feb 18 19:37:24 UTC 2014


On Tue, 18 Feb 2014, Nate Finch wrote:

> Personally I hate regular expressions, and that goes double for inflicting
> regexes on people using my product.  If Kapil's suggestion solves 90% of
> cases (I don't know if it does), that seems like a much better option than
> forcing people to write regexes.
>
> However, I'm not really familiar enough with the feature to understand the
> use cases, so, take it with a grain of salt.

+1 for regexes being overkill for the Gui use cases. We'll just allow them
to tali the log for the environment, service, or unit. We'll never want to
expose this to them in any way. It's a huge failing if I end up trying to
ask the user for a regex to get at a log. If people want to grep through
the results I'd say they should be able to do that from their own cli tools
as you would do now. If I want to grep or grep -v something, why would I
try to push it down the cli into the log command itself? I assume you're
worried about sending more data over the wire than necessary? Is there some
other motivation?

For the record I do love me some regexes! Just not here in a cli flag.

--

Rick Harding

Juju UI Engineering
https://launchpad.net/~rharding
@mitechie



More information about the Juju-dev mailing list