Hi, I wish to keep code simple by having a simple verbosity level logic.
On Thu, Jan 07, 2016 at 07:15:13PM +0100, Christian Marillat wrote: ... > Here is the 2.15.9 output : In 2.15.9, messages printed were not a simple hierarchy model. Some messages are turned off for higher verbosity. In 2.5.10, verbosity levels are 3 (no-verbose, verbose, debug) and simply add messages with the higher verbosity. For non-dehs mode of 2.15.9 output: > | Newest version on remote site is 1.7.1, local version is 1.6.2 This was always printed if (verbose or no-download) > | gst-libav-dmo: Newer version (1.7.1) available on remote site: > | http://gstreamer.freedesktop.org/data/src/gst-libav/gst-libav-1.7.1.tar.xz > | (local version is 1.6.2) This was always printed *only* if uscan is not in verbose mode. In verbose mode, it printed shorter message in corresponding code zone since updated package names and their new URLs are printed elsewhere. This is a bit odd situation. > And I don't want to have useless messages. Here I have 210 watch files > and the best for me is to have a small and readable output. Your concern is very valid. I agree that it should be in a style where you can easy to check many watch files for updated package names and their new URLs. We can do this without changing verbosety behavior for no-download cases. Printed texts does not need to be the identical one to 2.15.9 Regards, Osamu