Hi,

I'm using "?INFO" in "rules" within conditional code but I find it to be a
bit too verbos such as the following example:

Shell# foobar=1 shorewall check
Checking using Shorewall 5.0.8...
Resetting....
   INFO: Added support for Foobar - /etc/shorewall/rules (line 138)
Shorewall configuration verified

I don't really need the filename and line number which, of course, could be
useful in numerous other situations.

Would it be possible to add an alternative notation, maybe ?INFO! perhaps
or any other as you see fit to prevent displaying the filename and line
number?

On a more global way too, add a configuration variable VERBOSE_MESSAGES=0|1
(again, or any other name as you see fit) and then toggle the alternative
notation behaviour?

Here's a full example for the sake of completeness :

VERBOSE_MESSAGES=1 (default)
?INFO Some info
=> INFO: Some info /etc/shorewall/rules (line xxx)
?INFO! Some info
=> INFO: Some info

VERBOSE_MESSAGES=0
?INFO Some info
=> INFO: Some info
?INFO! Some info
=> INFO: Some info /etc/shorewall/rules (line xxx)

If this is too much work, the first suggestion with only ?INFO! is fine by
me.

-- 
ObNox
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to