[PD] difference between log level and -verbose flag?

Peter P. peterparker at fastmail.com
Mon Oct 7 13:32:51 CEST 2019


Thanks for your attempt to clarify Christof. I must say that I have a
hard time understanding it nevertheless so I ask myself how beginners to
Pd are expected to understand/use it.

* Christof Ressi <christof.ressi at gmx.at> [2019-10-07 13:19]:
> Hey,
> 
> > is there a specific reason the log level in Pd's console and the
> > -verbose flag do different things?
> 
> I think the idea of -verbose is to "enable" posting messages at log level 4. "verbose(1, ...)" only sends to the GUI if "sys_verbose" is true. Note that the log level passed to the "verbose" function starts at -3 instead of 0 (don't ask me why...), so "verbose(1, ...)" actually results in log level 4.
> 
> I think this is meant as an optimization to avoid spamming the GUI process with super verbose output. The thing is that code like "if (sys_verbose) post(...)" should really be replaced with "verbose(1, ...)".
> 
> BTW, I could imagine adding a new "-loglevel" flag which mirrors the GUI's log levels and filters the console output accordingly when running Pd with -nogui or -stderr.
> 
> Christof
> 
> > Gesendet: Montag, 07. Oktober 2019 um 12:16 Uhr
> > Von: "Peter P." <peterparker at fastmail.com>
> > An: pd-list <pd-list at iem.at>
> > Betreff: [PD] difference between log level and -verbose flag?
> >
> > Hi dear list,
> >
> > is there a specific reason the log level in Pd's console and the
> > -verbose flag do different things?
> >
> > The former does not print these valuable error messages about
> > abstractions or externals not being loaded.
> >
> > Wouldn't it be great if these two functions could be combined for
> > simpler understanding?
> >
> > thanks for all ideas!
> >
> >
> >
> > _______________________________________________
> > Pd-list at lists.iem.at mailing list
> > UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
> >
> 
> 
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list