Comment 2 for bug 1782308

Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

I would use a shell variable (e.g. var caFilterDebug) to switch error messages on/off.

Also we could extend the syntax to distinguish "important" from "unimportant" filters. E.g. prefixing important filters with + and/or prefixing unimportant filters with -:

caget 'channel.{"+important_filter":"value","-dont_care_much":42,"other_filter":{}}'

In that case + filters can cause errors that prevent connection, - filters can be silently ignored and filters without prefix can print a warning.

"filter", "-filter" and "+filter" would be the same filter, only error handling would be different.