]> git.puffer.fish Git - mirror/frr.git/commit
lib: de-conflict `log-filter` CLI command
authorDavid Lamparter <equinox@diac24.net>
Thu, 8 Apr 2021 10:57:58 +0000 (12:57 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 18 Jun 2021 18:56:53 +0000 (20:56 +0200)
commit9c2aa9192198769264df3d127332358b73983aed
tree5574df650e2456d46ab301124e038e723d4e87f6
parentd7193080afe3f9601da84488ea5a3057df56e39a
lib: de-conflict `log-filter` CLI command

`log-filter WORD` was giving me a serious headache since it also matches
`log WORD` due to the way the CLI token handling works.  This meant that
a mistyped `log something` command would silently be interpreted as a
filter string, causing me serious headscratching and WTFs until I
figured what was going on.

Remove this UX pitfall so noone else falls into it.  (Since the command
was never saved to config, renaming it shouldn't cause trouble.)

[Also I apparently forgot to update the docs when I transferred this
over to the new zlog bits...]

TODO for a rainy day:  since we collect all the CLI commands anyway, we
should warn somewhere for "2nd level ambiguous" commands like this.

Signed-off-by: David Lamparter <equinox@diac24.net>
doc/user/basic.rst
lib/log_vty.c