modsec-sdbm-util icon indicating copy to clipboard operation
modsec-sdbm-util copied to clipboard

quiet mode

Open marcstern opened this issue 3 years ago • 0 comments

Hello, When shrinking DB, there's a lot of extra info displayed. Although it doesn't hurt when calling the program interactively, it generates a lot og logs when scheduling it on a (very) regular basis. I plan to propose a PR for a '-q' (quiet) flag to not display the info messages in the shrink process. First of all, any reason to refuse this?

So, practical question: can someone explain me the goal of the p() complex macro in Linux? Why not using the same as in Windows (#define p printf)? I plan to use '#define p if (!quiet) printf' and use p() for all printf that are not important.

Thanks for advising

marcstern avatar Nov 30 '22 12:11 marcstern