[pca] Feature request, --debug messages to stderr
dpecka
dpecka at techniservit.cz
Thu Oct 1 14:38:17 CEST 2009
On Thu, 2009-10-01 at 14:00 +0200, Alexander Skwar wrote:
> Hi.
>
> On Thu, Oct 1, 2009 at 13:06, dpecka <dpecka at techniservit.cz> wrote:
>
> > ad.2) to your mention about *small *disadvantage: what about to add
> > there a switch, which allows to save --debug into file, like
> >
> > --debug=$file and if $file not specified, stderr is taken by default ?
>
> What would be the advantage of having "--debug", compared
> to doing "2>"? If there's none, then I'd vote against introducing such
> an option.
>
> Alexander
hm. ok. it's more complicated. we need to make a difference between --debug messages from
pca.pl and also included wget screaming, which is printed on stderr as well.
if we aren't interested for both, 2>$file catches a plenty of unwanted stuff. The best (but
the most complicated) solution will be to set a default behaviour of global --debug swith
and then add there a few new switches which would granular and override global --debug like
followings:
--debug
--debug-file=$file ## pca's debug messages
--debug-wget=$file ## separated wget output
regardly to this approach, probably something like --debug-patchadd=$file or so would be handful too.
Best Regards,
Daniel Pecka
More information about the pca
mailing list